________________________________
From: Michael Dewey <lists at dewey.myzen.co.uk>
Sent: Friday, October 12, 2018 4:33 AM
To: Alexander Nervedi; r-help at R-project.org
Subject: Re: [R] install issue with survey package?
Dear Al
It looks like the problem may be the embedded space in Al Nerdi
What happens if you manually download the tar.gz file, put it somewhere
convenient and then from the commend line run
R CMD INSTALL survey_3.34.tar.gz
You will need to make sure R is on your path first
Michael
On 12/10/2018 09:31, Alexander Nervedi wrote:
Have been trying to run a few packages with dependency on the survey
package (e.g. twang) and have run into trouble that I am not sure how
to resolve. Any help would be appreciated, the code (and error
messages) are below:
--- R log begins ---
install.packages("survey")
Installing package into ?D:/Users/Al
Nerdi/Documents/R/win-library/3.5?
(as ?lib? is unspecified)
There is a binary version available but the source version is
later:
binary source needs_compilation
survey 3.33-2 3.34 FALSE
installing the source package ?survey?
trying URL 'https://cran.rstudio.com/src/contrib/survey_3.34.tar.gz'
Content type 'application/x-gzip' length 1476949 bytes (1.4 MB)
downloaded 1.4 MB
Warning: invalid package 'D:\Users\Al'
Warning: invalid package
'Nerdi\AppData\Local\Temp\RtmpU3AmrY/downloaded_packages/survey_3.34.tar.gz'
Error: ERROR: no packages specified
In R CMD INSTALL
Warning in install.packages :
installation of package ?survey? had non-zero exit status
The downloaded source packages are in
?D:\Users\Al Nerdi\AppData\Local\Temp\RtmpU3AmrY\downloaded_packages?
install.packages("twang")
Installing package into ?D:/Users/Al
Nerdi/Documents/R/win-library/3.5?
(as ?lib? is unspecified)
also installing the dependencies ?gbm?, ?survey?
There is a binary version available but the source version is
later:
binary source needs_compilation
survey 3.33-2 3.34 FALSE
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.5/gbm_2.1.4.zip'
Content type 'application/zip' length 1094087 bytes (1.0 MB)
downloaded 1.0 MB
trying URL
'https://cran.rstudio.com/bin/windows/contrib/3.5/twang_1.5.zip'
Content type 'application/zip' length 1516991 bytes (1.4 MB)
downloaded 1.4 MB
package ?gbm? successfully unpacked and MD5 sums checked
package ?twang? successfully unpacked and MD5 sums checked
The downloaded binary packages are in
D:\Users\Al Nerdi\AppData\Local\Temp\RtmpU3AmrY\downloaded_packages
installing the source package ?survey?
trying URL 'https://cran.rstudio.com/src/contrib/survey_3.34.tar.gz'
Content type 'application/x-gzip' length 1476949 bytes (1.4 MB)
downloaded 1.4 MB
Warning: invalid package 'D:\Users\Al'
Warning: invalid package
'Nerdi\AppData\Local\Temp\RtmpU3AmrY/downloaded_packages/survey_3.34.tar.gz'
Error: ERROR: no packages specified
In R CMD INSTALL
Warning in install.packages :
installation of package ?survey? had non-zero exit status
The downloaded source packages are in
?D:\Users\Al Nerdi\AppData\Local\Temp\RtmpU3AmrY\downloaded_packages?
library(twang)
Loading required package: gbm
Loaded gbm 2.1.4
Error: package ?survey? required by ?twang? could not be found
R.Version()
$`platform`
[1] "x86_64-w64-mingw32"
$arch
[1] "x86_64"
$os
[1] "mingw32"
$system
[1] "x86_64, mingw32"
$status
[1] ""
$major
[1] "3"
$minor
[1] "5.1"
$year
[1] "2018"
$month
[1] "07"
$day
[1] "02"
$`svn rev`
[1] "74947"
$language
[1] "R"
$version.string
[1] "R version 3.5.1 (2018-07-02)"
$nickname
[1] "Feather Spray"
--- R log ends ---
I am not sure how to address this. Any suggestions will be great!
Grazie,
Al Nerdi
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
--
Michael
http://www.dewey.myzen.co.uk/home.html
[[alternative HTML version deleted]]
______________________________________________
R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide
http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.