[Rd] names lost in functions from packages installed by R-devel r74500

Francois Rousset francois.rousset at umontpellier.fr
Tue Apr 3 16:38:42 CEST 2018


Dear list members,

If I install with R-devel r74500 on Windows (sessionInfo below) the 
attached 'bugdemo' package with the single function

foo <- function() {
   named <- c("bar"=TRUE)
   print(named)
   return(named)
}

then run

 > bugdemo::foo()
[1] TRUE
[1] TRUE

The "bar" name is lost. It is not lost when I define foo in the R 
session instead of using its packaged version.

To reproduce:

=======================================

install.packages("bugdemo_0.1.1.tar.gz",type="source",repos=NULL)

bugdemo::foo()

=======================================

I also tested whether this was a problem with the "R CMD build" step or 
the "install.packages()" step by building with R 3.4.4 and installing 
with R-devel, and reciprocally, and the problem appears to be in the 
install step of R-devel.

F.

=============

 > sessionInfo()
R Under development (unstable) (2018-03-31 r74500)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows 7 x64 (build 7601) Service Pack 1

Matrix products: default

locale:
[1] LC_COLLATE=French_France.1252  LC_CTYPE=French_France.1252 
LC_MONETARY=French_France.1252
[4] LC_NUMERIC=C                   LC_TIME=French_France.1252

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods base

other attached packages:
[1] bugdemo_0.1.1

loaded via a namespace (and not attached):
[1] compiler_3.6.0  tools_3.6.0     withr_2.1.2 memoise_1.1.0   
digest_0.6.15   devtools_1.13.5
 >


-- 
François Rousset
CNRS research scientist 
<http://www.isem.univ-montp2.fr/recherche/teams/evolutionary-genetics/staff/roussetfrancois/?lang=en> 
- Institut des Sciences de l'Evolution (ISE-M)
Université de Montpellier - Dept. Scientifique B3ESTE


-------------- next part --------------
A non-text attachment was scrubbed...
Name: bugdemo_0.1.1.tar.gz
Type: application/gzip
Size: 728 bytes
Desc: not available
URL: <https://stat.ethz.ch/pipermail/r-devel/attachments/20180403/bf16da0c/attachment.gz>


More information about the R-devel mailing list