[R-pkg-devel] Fix non-ASCII characters in R packages
OK, but this note did not lead to a rejection (and the mail we sent did
not even include the Note you apparently cited from the check.log)
The actual issues are:
Found the following (possibly) invalid URLs:
URL: https://cran.r-project.org/web/packages/geobr/index.html
From: README.md
NEWS.md
Status: 200
Message: OK
CRAN URL not in canonical form
URL:
https://cran.r-project.org/web/packages/geobr/vignettes/intro_to_geobr.html
From: README.md
Status: 200
Message: OK
CRAN URL not in canonical form
The canonical URL of the CRAN page for a package is
https://CRAN.R-project.org/package=pkgname
Flavor: r-devel-linux-x86_64-debian-gcc, r-devel-windows-ix86+x86_64
Check: for hidden files and directories, Result: NOTE
Found the following hidden files and directories:
.travis.yml
These were most likely included in error. See section 'Package
structure' in the 'Writing R Extensions' manual.
Best,
Uwe Ligges
On 02.12.2019 18:46, Rafael Pereira wrote:
Thanks for the heads up, Ivan. In any case, I?ll change the encoding of the database. Uwe, I?m faxing this issue in the geobr package Rafael H.M. Pereira
On 2 Dec 2019, at 13:39, Uwe Ligges <ligges at statistik.tu-dortmund.de> wrote:
On 02.12.2019 15:29, peter dalgaard wrote: Dunno if it helps, but the NOTE is about "checking data", which, as far as I can decipher the code, means that it is looking at datasets in the data/ directory. So I suspect that looking at *.R files is not going to be the right thing to do. -pd
On 2 Dec 2019, at 14:57 , Rafael Pereira <rafa.pereira.br at gmail.com> wrote: Hi all, I am trying to update my R package on CRAN but I am being requested to fix this NOTE: checking data for non-ASCII characters ... NOTE Note: found 58 marked Latin-1 strings
Have we really asked you to fix these? Which packages is this? Best, Uwe Ligges
I have used to code below to identify my scripts that have strings using non-ASCII characters. The problem is that in most cases these non-ASCII characters are used in the documentation of functions, so I cannot simply convert their encoding using iconv() for example # Find scripts using non-ASCII characters f <- list.files(pattern = "*.R", recursive = T) r <- lapply(f, tools::showNonASCIIfile) I've tried (1) reopening and (2) resaving those scripts with UTF-8 encoding, (3) setting UTF-8 as the default encoding of the project, but nothing seems to fix this issue. Any suggestions? obs. I've posted this question on SO https://stackoverflow.com/questions/59139923/fix-non-ascii-characters-in-r-packages best, Rafael Pereira [[alternative HTML version deleted]]
______________________________________________ R-package-devel at r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-package-devel