[R] Installing polycor package

Kevelson, Marisol J mkevelson at ets.org
Mon Oct 31 22:36:45 CET 2016


Thank you. I understand that it's best to use the current versions of R packages. Neither the current version of polycor nor the current version of mvtnorm would install when I used the most recent version of R, 3.3.1:

> install.packages("polycor", repos="http://R-Forge.R-project.org")
Warning in install.packages("polycor", repos = "http://R-Forge.R-project.org") :
  'lib = "C:/Program Files/R/R-3.3.1/library"' is not writable
also installing the dependency ‘mvtnorm’

trying URL 'http://R-Forge.R-project.org/bin/windows/contrib/3.3/mvtnorm_1.0-5.zip'
Content type 'application/zip' length 408362 bytes (398 KB)
downloaded 292 KB

trying URL 'http://R-Forge.R-project.org/bin/windows/contrib/3.3/polycor_0.7-10.zip'
Content type 'application/zip' length 52183 bytes (50 KB)
downloaded 50 KB

Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
  cannot open the connection
In addition: Warning messages:
1: In download.file(url, destfile, method, mode = "wb", ...) :
  downloaded length 299008 != reported length 408362
2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip file
3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type")) :
  cannot open compressed file 'mvtnorm/DESCRIPTION', probable reason 'No such file or directory'



-----Original Message-----
From: Jeff Newmiller [mailto:jdnewmil at dcn.davis.ca.us]
Sent: Monday, October 31, 2016 5:03 PM
To: Kevelson, Marisol J <mkevelson at ets.org>; r-help at r-project.org
Subject: Re: [R] Installing polycor package

"any advice" is to use the latest R and packages. Unfortunately the number of things that can go wrong trying to keep an old version of R working is too extensive for this list to support (per Posting Guide).

If you wish to proceed without support then by all means download any older versions of the packages that you need from the CRAN archives manually and install those files directly rather than trying to automatically download and install. Keep in mind that contributed package authors might have fixed bugs since then though so you may not have access to a fully-functional R analysis environment. While such authors might help you out if you get into a bind, don't be surprised if they won't... it can be enough of a headache to keep the current version of their package working without adding a whole separate historical version going too.
--
Sent from my phone. Please excuse my brevity.

On October 31, 2016 8:49:03 AM PDT, "Kevelson, Marisol J" <mkevelson at ets.org> wrote:
>I have been trying to install the R polycor package without any
>success. I want to install version 0.7-8 because it is supposed to work
>with R version 3.1.0, which I have to use to run an R plug-in for SPSS.
>But I get a message that polycor is not available for R version 3.1.0:
>
>>  install.packages("polycor",
>repos="C:/Users/mkevelson/Documents/polycor_0.7-8 (1)/polycor/R")
>Installing package into
>'C:/Users/mkevelson/Documents/R/win-library/3.1'
>(as 'lib' is unspecified)
>Warning: unable to access index for repository
>C:/Users/mkevelson/Documents/polycor_0.7-8
>(1)/polycor/R/bin/windows/contrib/3.1
>Warning message:
>package 'polycor' is not available (for R version 3.1.0)
>
>I also tried installing the current version of polycor directly from
>R-Forge in R version 3.3.1, also without success:
>
>> install.packages("polycor", repos="http://R-Forge.R-project.org")
>Installing package into
>'C:/Users/mkevelson/Documents/R/win-library/3.3'
>(as 'lib' is unspecified)
>also installing the dependency 'mvtnorm'
>
>trying URL
>'http://R-Forge.R-project.org/bin/windows/contrib/3.3/mvtnorm_1.0-5.zip'
>Content type 'application/zip' length 408362 bytes (398 KB) downloaded
>292 KB
>
>trying URL
>'http://R-Forge.R-project.org/bin/windows/contrib/3.3/polycor_0.7-10.zip'
>Content type 'application/zip' length 52183 bytes (50 KB) downloaded 50
>KB
>
>Error in read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package",
>"Type")) :
>  cannot open the connection
>In addition: Warning messages:
>1: In download.file(url, destfile, method, mode = "wb", ...) :
>  downloaded length 299008 != reported length 408362
>2: In unzip(zipname, exdir = dest) : error 1 in extracting from zip
>file
>3: In read.dcf(file.path(pkgname, "DESCRIPTION"), c("Package", "Type"))
>:
>cannot open compressed file 'mvtnorm/DESCRIPTION', probable reason 'No
>such file or directory'
>
>I would greatly appreciate any advice you have on how to successfully
>install the polycor package.
>
>Thank you,
>
>Marisol
>
>
>
>________________________________
>
>This e-mail and any files transmitted with it may contain privileged or
>confidential information. It is solely for use by the individual for
>whom it is intended, even if addressed incorrectly. If you received
>this e-mail in error, please notify the sender; do not disclose, copy,
>distribute, or take any action in reliance on the contents of this
>information; and delete it from your system. Any other use of this
>e-mail is prohibited.
>
>
>Thank you for your compliance.
>
>________________________________
>
>[[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.


________________________________

This e-mail and any files transmitted with it may contain privileged or confidential information. It is solely for use by the individual for whom it is intended, even if addressed incorrectly. If you received this e-mail in error, please notify the sender; do not disclose, copy, distribute, or take any action in reliance on the contents of this information; and delete it from your system. Any other use of this e-mail is prohibited.


Thank you for your compliance.

________________________________


More information about the R-help mailing list