Re: [Rd] Error in substring: invalid multibyte string

2020-06-27 Thread Toby Hocking
Thanks for the quick response Ivan. readLines with encoding='latin1' works for me (on Ubuntu). However I was more concerned with the inconsistency in results between substr and regexpr. I was expecting that if one of them errors because of an unknown encoding then the other should as well. Even be

Re: [Rd] [External] Change in lapply's missing argument passing

2020-06-27 Thread luke-tierney
Yes, to resolve https://bugs.r-project.org/bugzilla/show_bug.cgi?id=15199 Best, luke On Fri, 26 Jun 2020, William Dunlap via R-devel wrote: Consider the following expression, in which we pass 'i=', with no value given for the 'i' argument, to lapply. lapply("x", function(i, j) c(i=missing

[Rd] R CMD build/check Documentation in Writing R Extensions 1.3

2020-06-27 Thread Robert Harlow
Hi, In WRE section 1.3, there is a note that says "R CMD check and R CMD build run R processes with --vanilla in which none of the user’s startup files are read." While this is true, is it somewhat confusing? When reading quickly, it is possible to read that statement as "running R CMD check is t

Re: [Rd] roxygen2 / documentation of reexports

2020-06-27 Thread Gábor Csárdi
You can fix this with the dev version of roxygen, you can get it from https://github.com/r-lib/roxygen2 roxygen 7.1.1 with the fix will be on CRAN shortly, hopefully: https://github.com/r-lib/roxygen2/issues/1126 See more about this issue here: https://www.mail-archive.com/r-package-devel@r-proje

[Rd] roxygen2 / documentation of reexports

2020-06-27 Thread Blätte , Andreas
Dear colleagues, preparing a release of my package ‚polmineR’ I encountered the following issue with a new warning issued when running R CMD check with the --as-cran option on Debian with R-devel. To reexport the magrittr pipe operator %>%, my package adopted I snippet you’d see in the dplyr p

Re: [Rd] Error in substring: invalid multibyte string

2020-06-27 Thread Ivan Krylov
On Fri, 26 Jun 2020 15:57:06 -0700 Toby Hocking wrote: >invalid multibyte string at 'gel-A<6b>iyoshi' >https://stat.ethz.ch/pipermail/r-devel/1999-November/author.html The server says that the text is UTF-8: curl -sI \ https://stat.ethz.ch/pipermail/r-devel/1999-November/author.html | \ grep