I have noticed a code-breaking functionality in nlperiod.R::getAllNlPeriods().
Now seq(as.Date(startDate), as.Date(date(), "%c"), by = "month") returns NA on some locales (also notice missing lubridate::). In this PR I have simplified it to seq(as.Date(startDate), as.Date(Sys.Date(), "%c"), by = "month") to make sure it is not locale-dependent.
I have also replaced all lubridate::date(lubridate::now()) with Sys.Date().
Hello.
I have noticed a code-breaking functionality in
nlperiod.R::getAllNlPeriods()
.Now
seq(as.Date(startDate), as.Date(date(), "%c"), by = "month")
returns NA on some locales (also notice missinglubridate::
). In this PR I have simplified it toseq(as.Date(startDate), as.Date(Sys.Date(), "%c"), by = "month")
to make sure it is not locale-dependent.I have also replaced all
lubridate::date(lubridate::now())
withSys.Date()
.