Some data has the wrong encoding. devtools::check() throws these warnings:
Following this post, below is my best attempt to fix the problem. But the solution is not good enough: At best, the non-ASCII characters are removed. What I want it to replace them with the correct character.
Suzanne said the encoding is "latin1" (https://goo.gl/KZiVbQ). But the conversion from latin-ascii doesn't work well enough (see below).
Maybe if I receive the data in .csv format? And I can read it with the right encoding? Something like this: read.csv(data, encoding = "latin1").
I'll worry about this once I know what data makes it to allodb. This issue was opened at early stages and refers to a general dataset, WSG, that is still being considered.
Some data has the wrong encoding.
devtools::check()
throws these warnings:Following this post, below is my best attempt to fix the problem. But the solution is not good enough: At best, the non-ASCII characters are removed. What I want it to replace them with the correct character.
Suzanne said the encoding is "latin1" (https://goo.gl/KZiVbQ). But the conversion from latin-ascii doesn't work well enough (see below).
Maybe if I receive the data in .csv format? And I can read it with the right encoding? Something like this:
read.csv(data, encoding = "latin1")
.My suboptimal solution so far