Skip to content
Prev 36287 / 63421 Next

R CMD install: problem quoting spaces when calling gzip?

I am sorry, this was from 2.10.1 on Mac OS X 10.6, so it might be Mac-specific. The behavior is reproducible both from the shell and the GUI version of R (sessionInfo output below). It does not seem to depend on the particular package: it can be reproduced by downloading an archive of a package from CRAN to a path containing spaces and calling
install.packages("path/with spaces/downloadedPackage.tar.gz", repos = NULL, type = "source"):
[...] downloaded 300 Kb
     [,1]  [,2]                                   
[1,] "gam" "~/Projects/R library/tmp/gam_1.01.tgz"
[...]
gzip: /Users/jochen/Projects/R.gz: No such file or directory
gzip: library/tmp/gam_1.01.tgz: No such file or directory
ERROR: cannot extract package from ?/Users/jochen/Projects/R library/tmp/gam_1.01.tgz?

# /usr/bin/R
R version 2.10.1 (2009-12-14) 
x86_64-apple-darwin9.8.0 

locale:
[1] de_DE.UTF-8/de_DE.UTF-8/C/C/de_DE.UTF-8/de_DE.UTF-8

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

# R.app (RAqua)
R version 2.10.1 (2009-12-14) 
i386-apple-darwin9.8.0 

locale:
[1] en_US.UTF-8/en_US.UTF-8/C/C/en_US.UTF-8/en_US.UTF-8

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base
On Mar 26, 2010, at 10:19 , Prof Brian Ripley wrote:

            
Does that mean that it has been re-designed to work with paths containing spaces on Unix-alikes?
sorry