install issue with survey package?

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

install issue with survey package?

Alexander Nervedi
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]]


______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: install issue with survey package?

Michael Dewey-3
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]]
>
>
>
> ______________________________________________
> [hidden email] 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

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: install issue with survey package?

Alexander Nervedi
Hi Michael,

I think you are spot on. Haven't resolved the issue yet. Here is what i get:

> utils:::menuInstallLocal()
* installing *source* package 'survey' ...
** package 'survey' successfully unpacked and MD5 sums checked
** R
** data
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** installing vignettes
** testing if installed package can be loaded
*** arch - i386
Fatal error: cannot open file 'D:\Users\Al': No such file or directory

*** arch - x64
Fatal error: cannot open file 'D:\Users\Al': No such file or directory

ERROR: loading failed for 'i386', 'x64'
* removing 'D:/Users/Al Nerdi/Documents/R/win-library/3.3/survey'
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.1/bin/i386/R" CMD INSTALL -l "D:\Users\Al Nerdi\Documents\R\win-library\3.3" "D:/downloads/survey_3.34.tar.gz"' had status 1
2: In install.packages(files[tarballs], .libPaths()[1L], repos = NULL,  :
  installation of package ‘D:/downloads/survey_3.34.tar.gz’ had non-zero exit status
>

I think i might have to reinstall R in the root directly (rather than under program files) so that there are no spaces in path names.

Thanks for the pointer,

best wishes,
Alnerdi

________________________________
From: Michael Dewey <[hidden email]>
Sent: Friday, October 12, 2018 4:33 AM
To: Alexander Nervedi; [hidden email]
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]]
>
>
>
> ______________________________________________
> [hidden email] 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]]

______________________________________________
[hidden email] 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.
Reply | Threaded
Open this post in threaded view
|

Re: install issue with survey package?

Jeff Newmiller
I think that would be a mistake, since R itself works just fine there. Your error has to do with the location of your default user library, not the software or its base library.

If you set R_LIBS_USER to a directory without spaces you should be fine. I suspect you can use the 8.3 directory notation visible when you use DIR/x at the CMD command line to even refer to the default library location in your Documents directory if you want.

On October 12, 2018 9:46:09 AM PDT, Alexander Nervedi <[hidden email]> wrote:

>Hi Michael,
>
>I think you are spot on. Haven't resolved the issue yet. Here is what i
>get:
>
>> utils:::menuInstallLocal()
>* installing *source* package 'survey' ...
>** package 'survey' successfully unpacked and MD5 sums checked
>** R
>** data
>** inst
>** preparing package for lazy loading
>** help
>*** installing help indices
>** building package indices
>** installing vignettes
>** testing if installed package can be loaded
>*** arch - i386
>Fatal error: cannot open file 'D:\Users\Al': No such file or directory
>
>*** arch - x64
>Fatal error: cannot open file 'D:\Users\Al': No such file or directory
>
>ERROR: loading failed for 'i386', 'x64'
>* removing 'D:/Users/Al Nerdi/Documents/R/win-library/3.3/survey'
>Warning messages:
>1: running command '"C:/PROGRA~1/R/R-33~1.1/bin/i386/R" CMD INSTALL -l
>"D:\Users\Al Nerdi\Documents\R\win-library\3.3"
>"D:/downloads/survey_3.34.tar.gz"' had status 1
>2: In install.packages(files[tarballs], .libPaths()[1L], repos = NULL,
>:
>installation of package ‘D:/downloads/survey_3.34.tar.gz’ had non-zero
>exit status
>>
>
>I think i might have to reinstall R in the root directly (rather than
>under program files) so that there are no spaces in path names.
>
>Thanks for the pointer,
>
>best wishes,
>Alnerdi
>
>________________________________
>From: Michael Dewey <[hidden email]>
>Sent: Friday, October 12, 2018 4:33 AM
>To: Alexander Nervedi; [hidden email]
>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]]
>>
>>
>>
>> ______________________________________________
>> [hidden email] 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]]
>
>______________________________________________
>[hidden email] 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.

--
Sent from my phone. Please excuse my brevity.

______________________________________________
[hidden email] 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.