r-lib / R6

Encapsulated object-oriented programming for R
https://R6.r-lib.org
Other
405 stars 56 forks source link

R6 package will not load in R version 3.2.5 #132

Closed Melissa-Cruz closed 6 years ago

Melissa-Cruz commented 6 years ago

Is there a way to load this package in R version 3.2.5? My workplace uses R version 3.2.5 on their servers. We receive this error "Warning in install.packages : installation of package ‘R6’ had non-zero exit status". Any suggestions would be great!

Thank you!

wch commented 6 years ago

R6 should install just fine in R 3.2.5. Can you provide the full output from when you try to install it? Also please include the output of sessionInfo() or devtools::session_info().

Melissa-Cruz commented 6 years ago

Here's the full output:

install.packages('R6', dependencies=TRUE, repos='http://cran.rstudio.com/') Installing package into ‘C:/Users/~/Documents/R/win-library/3.2’ (as ‘lib’ is unspecified)

There is a binary version available but the source version is later: binary source needs_compilation R6 2.2.0 2.2.2 FALSE

installing the source package ‘R6’

trying URL 'http://cran.rstudio.com/src/contrib/R6_2.2.2.tar.gz' Content type 'application/x-gzip' length 322959 bytes (315 KB) downloaded 315 KB

'D:\Program' is not recognized as an internal or external command, operable program or batch file. Warning in install.packages : running command '"D:/Program Files/R/R-3.2.5/bin/x64/R" CMD INSTALL -l "C:\Users\~\Documents\R\win-library\3.2" C:\Users\~\Temp\64\Rtmp2jtmMW/downloaded_packages/R6_2.2.2.tar.gz' had status 1 Warning in install.packages : installation of package ‘R6’ had non-zero exit status

The downloaded source packages are in ‘C:\Users\~Temp\64\Rtmp2jtmMW\downloaded_packages’

Here's the sessionInfo: sessionInfo() R version 3.2.5 (2016-04-14) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows Server >= 2012 x64 (build 9200)

locale: [1] LC_COLLATE=English_United States.1252 LC_CTYPE=English_United States.1252 LC_MONETARY=English_United States.1252 LC_NUMERIC=C LC_TIME=English_United States.1252

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

loaded via a namespace (and not attached): [1] tools_3.2.5

Thank you!

wch commented 6 years ago

I think this is probably due to a bug in R itself when dealing with volumes where short filenames are disabled. I would wager that you are unable to install any packages on your system, not just R6.

For more information:

Melissa-Cruz commented 6 years ago

Interesting. I do have certain restrictions on my work system but I was able to install another package like haven, which wasn't previously present just not R6. I'll check back with IT.

Thank you for your suggestions.

wch commented 6 years ago

Using install.packages("R6", type = "binary") may work, although you'd get an older version of R6.

Melissa-Cruz commented 6 years ago

That worked! Thanks

k-rama commented 5 years ago

Using install.packages("R6", type = "binary") may work, although you'd get an older version of R6.

Had a similar problem when running ggfortify for ggplot, that solved it. Thank you