[R-SIG-Finance] getEndOfMonth and getEndOfBizWeek in RcppBDT broken?

Dirk Eddelbuettel edd at debian.org
Wed Aug 8 20:01:33 CEST 2012

Ok, bug found.  In the R file definining the convenience functions

getEndOfBizWeek <- function(date = Sys.Date()) {
    stopifnot(inherits(date, "Date"))

getEndOfMonth <- function(date = Sys.Date()) {
    stopifnot(inherits(date, "Date"))

both of these miss the crucial 


to actually set the date you supply.  You could write yourself a local
variant til the updated package comes through.

Thanks for spotting this.


Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com

More information about the R-SIG-Finance mailing list