[Rd] Default repositories in WIndows

2017-09-08 Thread Rich Calaway via R-devel
In the NEWS for R 3.1.0, there is this item: The CRANextra repository is no longer a default repository on Windows: all the binary versions of packages from CRAN are now on CRAN, although CRANextra contains packages from Omegahat and elsewhere used by CRAN packages. However, the .onLoad f

[Rd] Bug: dput/deparse with named character vector inside list

2017-09-08 Thread Neal Richardson
Hi, I noticed some R-devel failures on CRAN on a package I maintain: https://cloud.r-project.org/web/checks/check_results_httptest.html It appears that 'dput'/'deparse' is returning an invalid object when there is a named character vector inside a list. Here is a minimal example that reproduces th

[Rd] file.copy(from=Directory, to=File) oddity

2017-09-08 Thread William Dunlap via R-devel
When I mistakenly use file.copy() with a directory for the 'from' argument and a non-directory for the 'to' and overwrite=TRUE, file.copy returns FALSE, meaning it could not do the copying. However, it also replaces the 'to' file with a zero-length file. dir.create( fromDir <- tempfile() ) cat(fi

Re: [Rd] Change of variable address due to GC

2017-09-08 Thread Tomas Kalibera
I think you might get a more useful answer if you say what you want to achieve. "address(x)" does not give you an address of variable "x" but of an object bound to x. The GC in R is non-moving, it does not relocate objects. However, a number of things can happen that will change the binding

[Rd] Change of variable address due to GC

2017-09-08 Thread lille stor
Hi,   I would like to know if the Garbage Collector (GC) changes the address of a variable in R. In other words, assuming the following code:         library(pryr)         x <- 1:1024         addr <- address(x)  # save address of variable "x" in "addr"       .        .