chrisvwn / Rnightlights

R package to extract data from satellite nightlights.
GNU General Public License v3.0
47 stars 14 forks source link

Error in seq.int #32

Closed DAMON10780 closed 5 years ago

DAMON10780 commented 5 years ago

Hi Chris, highestAdmLevelStats <- getCtryNlData(ctryCode = ctry, admLevel = "highest", nlType = "VIIRS.M", nlPeriods = nlRange("201401", "201412","VIIRS.M"), nlStats = list("sum",na.rm=TRUE), ignoreMissing=FALSE) I have encountered such an error message:Error in seq.int(r1$mon, 12 * (to0$year - r1$year) + to0$mon, by) : 'to' must be a finite number

chrisvwn commented 5 years ago

Hi @chrisvwn,

This looks like it is related to the locale on your computer. Please see this issue #8.

Try running Sys.setlocale("LC_TIME", "English").

Chris

chrisvwn commented 5 years ago

Closing this issue. Please reopen if you still face the same issue.