sensebox / opensensmapR

R client for opensensemap.org
https://noerw.github.io/opensensmapR/inst/doc/osem-history
8 stars 5 forks source link

encoding error on windows #22

Closed noerw closed 6 years ago

noerw commented 6 years ago

CRAN build fails with

  Quitting from lines 80-83 (osem-serialization.Rmd) 
  Error: processing vignette 'osem-serialization.Rmd' failed with diagnostics:
  lexical error: invalid bytes in UTF8 string.
            r","attributes":{},"value":["µg/m³","µg/m³","µg/m³","µg/m³",
                       (right here) ------^

Appveyor didn't catch this, as it can't build vignettes!

This seems to be an R bug on windows. Can't reproduce without a windows machine, thus it's unclear whether the fix should be in the vignette or package code. Meanwhile a dirty workaround would be to use a phenomenon without UTF-8 units in the vignette.