Rnightlights icon indicating copy to clipboard operation
Rnightlights copied to clipboard

Warning on improper quoting

Open fnarita opened this issue 6 years ago • 2 comments

Hi Chris,

I sometimes observe the following warning at the end:

Warning messages: In data.table::fread(input = ctryStructFnamePath) : Found and resolved improper quoting out-of-sample. First healed line 241: <<"BOL","Potosí","José María Linares","Caiza "D"",1299.43179663157>>. If the fields are not quoted (e.g. field separator does not appear within any field), try quote="" to avoid this warning.

My code is just as follows, for example:

ctry <- "BOL" highestAdmLevelStats <- getCtryNlData(ctryCode = ctry, admLevel = "country", nlType = "VIIRS.Y", nlPeriods = nlRange("2015", "2016"), nlStats = "sum", ignoreMissing=FALSE)

This is a case of Bolivia, but there are more countries that I got this warning.

Is this a matter of concern?

Futoshi

fnarita avatar Sep 16 '18 14:09 fnarita

Hi Futoshi,

Thanks for opening this issue. It seems we are not handling quotes in names well. For now this is not an issue unless you need to join data based on name where the quotes in the name might cause mismatches. Let me look into this.

Regards, Chris

chrisvwn avatar Sep 17 '18 07:09 chrisvwn

Thank you very much Chris for your timely and helpful support, as always!

I'm glad to hear that this is not an issue in my case, where I do not join data based on the name of locations.

Thank you very much! Futoshi

fnarita avatar Sep 17 '18 13:09 fnarita