Re: [Rd] R-devel internal errors during check produce?

2020-06-29 Thread Kurt Hornik
> Jan Gorecki writes: > Thank you both, > You are absolutely correct that example should be minimal, so here it is. > l = list(a=new.env(), b=new.env()) > unique(l) > Just for completeness, env_list during check that raises error > env_list <- list(baseenv(), >

Re: [R-pkg-devel] data and load version 3

2020-06-29 Thread Jeff Newmiller
Your choice. Do you want to support people using older versions of R, or not? On June 29, 2020 1:55:02 PM PDT, "Göran Broström" wrote: >I added two data sets (.rda) to my package eha, but when I build the >new >version I get: > > WARNING: Added dependency on R >= 3.5.0 because serialized

Re: [Rd] [External] Possible ABI change in R 4.0.1

2020-06-29 Thread luke-tierney
EXTPTR_PTR is not in the API so it is not guaranteed to even exist in the future. The API function for accessing the pointer address is R_ExternalPtrAddr. See Section 5.13 in WRE. Sometimes internals need to be changed, In this case a change was made to deal with a segfault; the commit notice

Re: [R-pkg-devel] data and load version 3

2020-06-29 Thread Uwe Ligges
On 29.06.2020 22:55, Göran Broström wrote: I added two data sets (.rda) to my package eha, but when I build the new version I get:  WARNING: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R.  File(s) containing

Re: [Rd] R-devel internal errors during check produce?

2020-06-29 Thread Jan Gorecki
Thank you both, You are absolutely correct that example should be minimal, so here it is. l = list(a=new.env(), b=new.env()) unique(l) Just for completeness, env_list during check that raises error env_list <- list(baseenv(), as.environment("package:graphics"),

[R-pkg-devel] data and load version 3

2020-06-29 Thread Göran Broström
I added two data sets (.rda) to my package eha, but when I build the new version I get: WARNING: Added dependency on R >= 3.5.0 because serialized objects in serialize/load version 3 cannot be read in older versions of R. File(s) containing such objects: ‘eha/data/swedeaths.rda’

Re: [Bioc-devel] New maintainer request for GAPGOM package

2020-06-29 Thread Turaga, Nitesh
Hi, I’ve added Rezvan to the package. A private email will be sent to Rezvan for his BiocCredentials account. Once SSH keys are added, package access will be granted. Best, Nitesh On Jun 25, 2020, at 9:40 AM, Casper van Mourik mailto:cp1...@hotmail.com>> wrote: Dear Bioconductor, I wish

Re: [Rd] `basename` and `dirname` change the encoding to "UTF-8"

2020-06-29 Thread Kevin Ushey
Did you test with R 4.0.2 or R-devel? A bug related to this issue was recently fixed: https://bugs.r-project.org/bugzilla/show_bug.cgi?id=17833 Best, Kevin On Mon, Jun 29, 2020 at 11:51 AM Duncan Murdoch wrote: > > On 29/06/2020 10:39 a.m., Johannes Rauh wrote: > > Dear R Developers, > > > > I

[Rd] Possible ABI change in R 4.0.1

2020-06-29 Thread Gábor Csárdi
Hi all, it seems that from R 4.0.1 EXTPTR_PTR can be either a macro or a function, depending on whether USE_RINTERNALS is requested. Jeroen helped me find that this was in 78592: https://github.com/wch/r-source/commit/c634fec5214e73747b44d7c0e6f047fefe44667d This is a problem, because binary

Re: [Rd] `basename` and `dirname` change the encoding to "UTF-8"

2020-06-29 Thread Duncan Murdoch
On 29/06/2020 10:39 a.m., Johannes Rauh wrote: Dear R Developers, I noticed that `basename` and `dirname` always return "UTF-8" on Windows (tested with R-4.0.0 and R-3.6.3): p <- "Föö/Bär" Encoding(p) [1] "latin1" Encoding(dirname(p)) [1] "UTF-8" Encoding(basename(p)) [1] "UTF-8" Is

Re: [Rd] R-devel internal errors during check produce?

2020-06-29 Thread Martin Maechler
> Kurt Hornik > on Mon, 29 Jun 2020 16:13:03 +0200 writes: > Jan Gorecki writes: >> So the unique.default is from the R tools package during >> checks. I don't see those issues on CRAN checks. > I cannot reproduce this locally (and have no clues about > docker).

[R-pkg-devel] How to refer to COPYRIGHTS and AUTHORS extra files in DESCRIPTION

2020-06-29 Thread git demont
Hi all, I am developing a package called 'IFC'. https://github.com/gitdemont/IFC/ Last submission (v0.0.7) was almost the final one to get it CRAN https://github.com/gitdemont/IFC/tree/v0.0.7 It was manually checked and it should be accepted if I

[Rd] `basename` and `dirname` change the encoding to "UTF-8"

2020-06-29 Thread Johannes Rauh
Dear R Developers, I noticed that `basename` and `dirname` always return "UTF-8" on Windows (tested with R-4.0.0 and R-3.6.3): > p <- "Föö/Bär" > Encoding(p) [1] "latin1" > Encoding(dirname(p)) [1] "UTF-8" > Encoding(basename(p)) [1] "UTF-8" Is this on purpose? At least I did not find any

Re: [Rd] "R CMD Sweave --driver=..." woes

2020-06-29 Thread Kurt Hornik
> Vincent Goulet via R-devel writes: Thanks: fixed now in the trunk with c78751. Best -k > In trying to change the driver used by Sweave on the command line using >R CMD Sweave --driver=foo > I consistently get the "directory 'foo' does not exist' error. (For any value > of 'foo',

Re: [Rd] R-devel internal errors during check produce?

2020-06-29 Thread Kurt Hornik
> Jan Gorecki writes: > So the unique.default is from the R tools package during checks. > I don't see those issues on CRAN checks. I cannot reproduce this locally (and have no clues about docker). Perhaps you can try to debug this on your end? And see what env_list is when the error

[Rd] A warning in gzcon but not in gzfile

2020-06-29 Thread Jeff King
Hi all, I used `gzfile` and `gzcon` to read a compressed file but I found that `gzcon` gave me a different result than `gzfile`. It seems like the `gzcon` does not handle the data correctly. I have posted an example below. In the example, a portion of a compressed file is downloaded from Google

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

2020-06-29 Thread Tomas Kalibera
From the user's (or package author's) point, all strings should always be valid in their declared encoding. If they are not, the result of string operations is undefined - it may be an error or warning, but also silently produced correct or incorrect result. There are R functions that check if