{"action":"created","issue":{"url":"https://api.github.com/repos/RcppCore/Rcpp/issues/388","labels_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/388/labels{/name}","comments_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/388/comments","events_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/388/events","html_url":"https://github.com/RcppCore/Rcpp/issues/388","id":114307859,"number":388,"title":"Sugar functions: cumprod, cummin, and cummax","user":{"login":"nathan-russell","id":14030048,"avatar_url":"https://avatars.githubusercontent.com/u/14030048?v=3","gravatar_id":"","url":"https://api.github.com/users/nathan-russell","html_url":"https://github.com/nathan-russell","followers_url":"https://api.github.com/users/nathan-russell/followers","following_url":"https://api.github.com/users/nathan-russell/following{/other_user}","gists_url":"https://api.github.com/users/nathan-russell/gists{/gist_id}","starred_url":"https://api.github.com/users/nathan-russell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nathan-russell/subscriptions","organizations_url":"https://api.github.com/users/nathan-russell/orgs","repos_url":"https://api.github.com/users/nathan-russell/repos","events_url":"https://api.github.com/users/nathan-russell/events{/privacy}","received_events_url":"https://api.github.com/users/nathan-russell/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-10-30T16:40:54Z","updated_at":"2015-11-03T16:27:10Z","closed_at":"2015-11-03T16:27:10Z","body":"I'm preparing a PR that includes `sugar` counterparts for `cumprod`, `cummin`, and `cummax` in base R, along with the respective unit tests. I don't believe this will affect any existing code, and my unit tests & Travis build ran without hitch, but I wanted to open this issue for the sake of questions, concerns, or general discussion. \r\n\r\nBriefly, \r\n* `Rcpp::cumprod` is templated for `INTSXP`, `REALSXP`, and `CPLXSXP`; and `Rcpp::cummin` & `Rcpp::cummax` are templated for `INTSXP` and `REALSXP`; in accordance with `base::cumprod`, `base::cummin`, and `base::cummax`, respectively \r\n* All three appear to handle `NA`s and `matrix` arguments correctly (re: in the same manner as base R)  \r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RcppCore/Rcpp/issues/comments/153405299","html_url":"https://github.com/RcppCore/Rcpp/issues/388#issuecomment-153405299","issue_url":"https://api.github.com/repos/RcppCore/Rcpp/issues/388","id":153405299,"user":{"login":"eddelbuettel","id":673121,"avatar_url":"https://avatars.githubusercontent.com/u/673121?v=3","gravatar_id":"","url":"https://api.github.com/users/eddelbuettel","html_url":"https://github.com/eddelbuettel","followers_url":"https://api.github.com/users/eddelbuettel/followers","following_url":"https://api.github.com/users/eddelbuettel/following{/other_user}","gists_url":"https://api.github.com/users/eddelbuettel/gists{/gist_id}","starred_url":"https://api.github.com/users/eddelbuettel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddelbuettel/subscriptions","organizations_url":"https://api.github.com/users/eddelbuettel/orgs","repos_url":"https://api.github.com/users/eddelbuettel/repos","events_url":"https://api.github.com/users/eddelbuettel/events{/privacy}","received_events_url":"https://api.github.com/users/eddelbuettel/received_events","type":"User","site_admin":false},"created_at":"2015-11-03T16:27:10Z","updated_at":"2015-11-03T16:27:10Z","body":"This has been merged."}}