[R] Trouble Installing R packages

Duncan Murdoch murdoch.duncan at gmail.com
Fri Nov 6 17:43:17 CET 2015

On 05/11/2015 9:42 PM, Adam Garza wrote:
> Trying to install vcd package but can’t
> It seems like it tries but runs into some kind of error and so quits.
> Maybe it has something to do with the “dependencies” – not sure what that means

Most packages depend on other packages.  The vcd package depends on some 
standard packages which you likely already have, plus colorspace and 
lmtest.    But the site (cran.revolutionanalytics.com) where you're 
trying to download those doesn't have them.  (It also seems to be 
missing the Windows binary.  I'd try setting a different mirror.)

Duncan Muroch

> Also think it might have something to do with Windows 10 keeping Documents folder synced with OneDrive.
> Can anyone help?
>> install.packages("vcd")
> Installing package into ‘C:/Users/adgar/OneDrive/Documents/R/win-library/3.2’
> (as ‘lib’ is unspecified)
> --- Please select a CRAN mirror for use in this session ---
> also installing the dependencies ‘zoo’, ‘colorspace’, ‘lmtest’
> Packages which are only available in source form, and may need
>    compilation of C/C++/Fortran: ‘zoo’ ‘colorspace’ ‘lmtest’
>    These will not be installed
> installing the source package ‘vcd’
> trying URL 'https://cran.revolutionanalytics.com/src/contrib/vcd_1.4-1.tar.gz'
> Content type 'application/octet-stream' length 883913 bytes (863 KB)
> downloaded 863 KB
> ERROR: dependencies 'colorspace', 'lmtest' are not available for package 'vcd'
> * removing 'C:/Users/adgar/OneDrive/Documents/R/win-library/3.2/vcd'
> The downloaded source packages are in
>          ‘C:\Users\adgar\AppData\Local\Temp\RtmpymmKaM\downloaded_packages’
> Warning messages:
> 1: running command '"C:/PROGRA~1/R/R-32~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\adgar\OneDrive\Documents\R\win-library\3.2" C:\Users\adgar\AppData\Local\Temp\RtmpymmKaM/downloaded_packages/vcd_1.4-1.tar.gz' had status 1
> 2: In install.packages("vcd") :
>    installation of package ‘vcd’ had non-zero exit status
> Sent from Mail for Windows 10
> 	[[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.

More information about the R-help mailing list