Unable to install rlang

Hello,
This iis my first post.
I am trying to install ggplot2 using the command: install.packages("ggplot2")
And it seems that i have a problem with rlang installation.
"Package which is only available in source form, and may need compilation of
C/C++/Fortran: ‘rlang’"
What does it mean? do i just download a c/c++ compiler? then what?
Thanks!

Hi @igalco14! Welcome!

To understand what’s going on here, you might try reading this discussion about a closely related message that also commonly confuses people:

To solve your specific problem, we’ll need some more information. Here are the two things that are most helpful to provide when asking questions about package installation problems:

  1. All the console output you see when you try to install the package
  2. The output of running sessionInfo()

Here is how you should provide that information:

  1. In a new post on a blank line, click the little </> button at the top of the posting box. This will insert a small template with the words “type or paste code here” selected.
  2. Copy the output from the console (no screenshots please!)
  3. Paste the output here, replacing the “type or paste code here” line in the template,

Following these steps makes it easier for helpers to read what you post and keeps the forum software from garbling it.

3 Likes
install.packages("ggplot2")
also installing the dependencies ‘rlang’, ‘scales’


  There are binary versions available but the source versions are later:
        binary source needs_compilation
scales   0.4.1  1.0.0              TRUE
ggplot2  2.2.1  3.1.0             FALSE

Do you want to install from sources the package which needs compilation?
y/n: y
Package which is only available in source form, and may need compilation of
  C/C++/Fortran: ‘rlang’
Do you want to attempt to install these from sources?
y/n: 
installing the source packages ‘scales’, ‘ggplot2’

trying URL 'https://cran.rstudio.com/src/contrib/scales_1.0.0.tar.gz'
Content type 'application/x-gzip' length 299262 bytes (292 KB)
downloaded 292 KB

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.1.0.tar.gz'
Content type 'application/x-gzip' length 2863109 bytes (2.7 MB)
downloaded 2.7 MB

* installing *source* package 'scales' ...
** package 'scales' successfully unpacked and MD5 sums checked
** libs

*** arch - i386
C:/PROGRA~1/R/R-32~1.3/etc/i386/Makeconf:204: warning: overriding recipe for target '.m.o'
C:/PROGRA~1/R/R-32~1.3/etc/i386/Makeconf:197: warning: ignoring old recipe for target '.m.o'
g++ -m32 -I"C:/PROGRA~1/R/R-32~1.3/include" -DNDEBUG    -I"C:/Program Files/R/R-3.2.3/library/Rcpp/include" -I"d:/RCompile/r-compiling/local/local323/include"     -O2 -Wall  -mtune=core2 -c RcppExports.cpp -o RcppExports.o
In file included from C:/Program Files/R/R-3.2.3/library/Rcpp/include/RcppCommon.h:67,
                 from C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp.h:27,
                 from RcppExports.cpp:4:
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/sprintf.h: In function 'std::__cxx11::string Rcpp::sprintf(const char*, ...)':
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/sprintf.h:30:12: warning: unnecessary parentheses in declaration of 'ap' [-Wparentheses]
     va_list(ap);
            ^
In file included from C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/Module.h:338,
                 from C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp.h:64,
                 from RcppExports.cpp:4:
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/module/Module_Property.h: At global scope:
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/module/Module_Property.h:103:41: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
     void set(Class* object, SEXP value) throw(std::range_error,Rcpp::not_compatible){
                                         ^~~~~
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/module/Module_Property.h:161:41: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
     void set(Class* object, SEXP value) throw(std::range_error,Rcpp::not_compatible){
                                         ^~~~~
g++ -m32 -I"C:/PROGRA~1/R/R-32~1.3/include" -DNDEBUG    -I"C:/Program Files/R/R-3.2.3/library/Rcpp/include" -I"d:/RCompile/r-compiling/local/local323/include"     -O2 -Wall  -mtune=core2 -c colors.cpp -o colors.o
In file included from C:/Program Files/R/R-3.2.3/library/Rcpp/include/RcppCommon.h:67,
                 from C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp.h:27,
                 from colors.cpp:1:
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/sprintf.h: In function 'std::__cxx11::string Rcpp::sprintf(const char*, ...)':
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/sprintf.h:30:12: warning: unnecessary parentheses in declaration of 'ap' [-Wparentheses]
     va_list(ap);
            ^
In file included from C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/Module.h:338,
                 from C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp.h:64,
                 from colors.cpp:1:
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/module/Module_Property.h: At global scope:
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/module/Module_Property.h:103:41: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
     void set(Class* object, SEXP value) throw(std::range_error,Rcpp::not_compatible){
                                         ^~~~~
C:/Program Files/R/R-3.2.3/library/Rcpp/include/Rcpp/module/Module_Property.h:161:41: warning: dynamic exception specifications are deprecated in C++11 [-Wdeprecated]
     void set(Class* object, SEXP value) throw(std::range_error,Rcpp::not_compatible){
                                         ^~~~~
process_begin: CreateProcess(NULL, basename scales.dll .dll, ...) failed.
make: C:/PROGRA~1/R/R-32~1.3/share/make/winshlib.mk:11: pipe: No error
process_begin: CreateProcess(NULL, basename scales.dll .dll, ...) failed.
make: C:/PROGRA~1/R/R-32~1.3/share/make/winshlib.mk:11: pipe: No error
process_begin: CreateProcess(NULL, basename scales.dll .dll, ...) failed.
make: C:/PROGRA~1/R/R-32~1.3/share/make/winshlib.mk:11: pipe: No error
"zRcppExports.o colors.o" was unexpected at this time.
make: *** [C:/PROGRA~1/R/R-32~1.3/share/make/winshlib.mk:11: scales.dll] Error 255
Warning: running command 'make -f "C:/PROGRA~1/R/R-32~1.3/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-32~1.3/share/make/winshlib.mk" SHLIB_LDFLAGS='$(SHLIB_CXXLDFLAGS)' SHLIB_LD='$(SHLIB_CXXLD)' SHLIB="scales.dll" OBJECTS="RcppExports.o colors.o"' had status 2
ERROR: compilation failed for package 'scales'
* removing 'C:/Program Files/R/R-3.2.3/library/scales'
* restoring previous 'C:/Program Files/R/R-3.2.3/library/scales'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\Rtmp2LNBlj/downloaded_packages/scales_1.0.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘scales’ had non-zero exit status
ERROR: dependency 'rlang' is not available for package 'ggplot2'
* removing 'C:/Program Files/R/R-3.2.3/library/ggplot2'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\Rtmp2LNBlj/downloaded_packages/ggplot2_3.1.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\igal\AppData\Local\Temp\Rtmp2LNBlj\downloaded_packages’

This is the output of the error that i get when i try to install ggplot2.
It seems that rlang dependency is not available for package ggplot2

The reason a binary is not available is that your version of R is a little old (3.2.3; current is 3.5.1); CRAN only keeps binaries for the last couple releases, I believe. There may be some deeper problem, but I suspect updating R itself may be enough to fix the issues.

2 Likes

I agree with @alistaire that my first step here would be to update R.

Besides the lack of an rlang binary, the scales package needs compiling, and the compilation failed. It looks like this may be because of an incompatibility between the compiler the latest version of scales is expecting and what you have installed on your computer. This is probably fixable with some effort, but honestly the web of dependencies gets increasingly difficult to navigate the longer you run an old version of R, so it's almost always a better plan to keep R updated. Doing so means that in most cases, the packages you need will be available as pre-compiled binaries and your package installation life will be much simpler.

One note on updating R: it seems like maybe you installed the RTools for Windows? Did you install the latest version, or the version that matched your R version (3.2)? If you update R to the latest version, you'll want to make sure you also have the latest version of the RTools installed to ease headaches if you do need to compile a source package.

1 Like

Ok so the problem was that I had 2 versions of 'R' - 3.2.3 and 3.5.1, I uninstalled the old one and now things seems to be running better however I still can't load ggplot2.

> install.packages("ggplot2")
Warning in install.packages :
  dependencies ‘grid’, ‘stats’, ‘grDevices’, ‘graphics’, ‘utils’, ‘methods’, ‘nlme’, ‘tools’ are not available
also installing the dependencies ‘lattice’, ‘glue’, ‘stringi’, ‘fansi’, ‘utf8’, ‘Matrix’, ‘Rcpp’, ‘stringr’, ‘munsell’, ‘R6’, ‘cli’, ‘crayon’, ‘pillar’, ‘digest’, ‘lazyeval’, ‘MASS’, ‘mgcv’, ‘reshape2’, ‘rlang’, ‘scales’, ‘tibble’, ‘viridisLite’, ‘withr’


  There are binary versions available but the source versions are later:
             binary   source needs_compilation
lattice     0.20-35  0.20-38              TRUE
glue          1.0.0    1.3.0              TRUE
stringi       1.1.5    1.2.4              TRUE
Matrix        1.2-8   1.2-15              TRUE
Rcpp        0.12.10    1.0.0              TRUE
stringr       1.2.0    1.3.1             FALSE
munsell       0.4.3    0.5.0             FALSE
R6            2.2.0    2.3.0             FALSE
crayon        1.3.2    1.3.4             FALSE
digest       0.6.12   0.6.18              TRUE
lazyeval      0.2.0    0.2.1              TRUE
MASS         7.3-45 7.3-51.1              TRUE
mgcv         1.8-17   1.8-25              TRUE
reshape2      1.4.2    1.4.3              TRUE
scales        0.4.1    1.0.0              TRUE
tibble        1.3.0    1.4.2              TRUE
viridisLite   0.2.0    0.3.0             FALSE
withr         1.0.2    2.1.2             FALSE
ggplot2       2.2.1    3.1.0             FALSE

Do you want to install from sources the packages which need compilation?
y/n: y
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘fansi’ ‘utf8’ ‘rlang’
Do you want to attempt to install these from sources?
y/n: y
installing the source packages ‘lattice’, ‘glue’, ‘stringi’, ‘fansi’, ‘utf8’, ‘Matrix’, ‘Rcpp’, ‘stringr’, ‘munsell’, ‘R6’, ‘cli’, ‘crayon’, ‘pillar’, ‘digest’, ‘lazyeval’, ‘MASS’, ‘mgcv’, ‘reshape2’, ‘rlang’, ‘scales’, ‘tibble’, ‘viridisLite’, ‘withr’, ‘ggplot2’

trying URL 'https://cran.rstudio.com/src/contrib/lattice_0.20-38.tar.gz'
Content type 'application/x-gzip' length 359031 bytes (350 KB)
downloaded 350 KB

trying URL 'https://cran.rstudio.com/src/contrib/glue_1.3.0.tar.gz'
Content type 'application/x-gzip' length 56368 bytes (55 KB)
downloaded 55 KB

trying URL 'https://cran.rstudio.com/src/contrib/stringi_1.2.4.tar.gz'
Content type 'application/x-gzip' length 17916239 bytes (17.1 MB)
downloaded 17.1 MB

trying URL 'https://cran.rstudio.com/src/contrib/fansi_0.4.0.tar.gz'
Content type 'application/x-gzip' length 266123 bytes (259 KB)
downloaded 259 KB

trying URL 'https://cran.rstudio.com/src/contrib/utf8_1.1.4.tar.gz'
Content type 'application/x-gzip' length 218882 bytes (213 KB)
downloaded 213 KB

trying URL 'https://cran.rstudio.com/src/contrib/Matrix_1.2-15.tar.gz'
Content type 'application/x-gzip' length 1861654 bytes (1.8 MB)
downloaded 1.8 MB

trying URL 'https://cran.rstudio.com/src/contrib/Rcpp_1.0.0.tar.gz'
Content type 'application/x-gzip' length 3635277 bytes (3.5 MB)
downloaded 3.5 MB

trying URL 'https://cran.rstudio.com/src/contrib/stringr_1.3.1.tar.gz'
Content type 'application/x-gzip' length 119156 bytes (116 KB)
downloaded 116 KB

trying URL 'https://cran.rstudio.com/src/contrib/munsell_0.5.0.tar.gz'
Content type 'application/x-gzip' length 182653 bytes (178 KB)
downloaded 178 KB

trying URL 'https://cran.rstudio.com/src/contrib/R6_2.3.0.tar.gz'
Content type 'application/x-gzip' length 30968 bytes (30 KB)
downloaded 30 KB

trying URL 'https://cran.rstudio.com/src/contrib/cli_1.0.1.tar.gz'
Content type 'application/x-gzip' length 2186755 bytes (2.1 MB)
downloaded 2.1 MB

trying URL 'https://cran.rstudio.com/src/contrib/crayon_1.3.4.tar.gz'
Content type 'application/x-gzip' length 658694 bytes (643 KB)
downloaded 643 KB

trying URL 'https://cran.rstudio.com/src/contrib/pillar_1.3.0.tar.gz'
Content type 'application/x-gzip' length 103104 bytes (100 KB)
downloaded 100 KB

trying URL 'https://cran.rstudio.com/src/contrib/digest_0.6.18.tar.gz'
Content type 'application/x-gzip' length 128553 bytes (125 KB)
downloaded 125 KB

trying URL 'https://cran.rstudio.com/src/contrib/lazyeval_0.2.1.tar.gz'
Content type 'application/x-gzip' length 80150 bytes (78 KB)
downloaded 78 KB

trying URL 'https://cran.rstudio.com/src/contrib/MASS_7.3-51.1.tar.gz'
Content type 'application/x-gzip' length 487241 bytes (475 KB)
downloaded 475 KB

trying URL 'https://cran.rstudio.com/src/contrib/mgcv_1.8-25.tar.gz'
Content type 'application/x-gzip' length 896191 bytes (875 KB)
downloaded 875 KB

trying URL 'https://cran.rstudio.com/src/contrib/reshape2_1.4.3.tar.gz'
Content type 'application/x-gzip' length 36405 bytes (35 KB)
downloaded 35 KB

trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.3.0.1.tar.gz'
Content type 'application/x-gzip' length 817008 bytes (797 KB)
downloaded 797 KB

trying URL 'https://cran.rstudio.com/src/contrib/scales_1.0.0.tar.gz'
Content type 'application/x-gzip' length 299262 bytes (292 KB)
downloaded 292 KB

trying URL 'https://cran.rstudio.com/src/contrib/tibble_1.4.2.tar.gz'
Content type 'application/x-gzip' length 109808 bytes (107 KB)
downloaded 107 KB

trying URL 'https://cran.rstudio.com/src/contrib/viridisLite_0.3.0.tar.gz'
Content type 'application/x-gzip' length 44019 bytes (42 KB)
downloaded 42 KB

trying URL 'https://cran.rstudio.com/src/contrib/withr_2.1.2.tar.gz'
Content type 'application/x-gzip' length 53578 bytes (52 KB)
downloaded 52 KB

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.1.0.tar.gz'
Content type 'application/x-gzip' length 2863109 bytes (2.7 MB)
downloaded 2.7 MB

Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/lattice_0.20-38.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘lattice’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/glue_1.3.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘glue’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/stringi_1.2.4.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘stringi’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/fansi_0.4.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘fansi’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/utf8_1.1.4.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘utf8’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/Rcpp_1.0.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘Rcpp’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/munsell_0.5.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘munsell’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/R6_2.3.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘R6’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/crayon_1.3.4.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘crayon’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/digest_0.6.18.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘digest’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/lazyeval_0.2.1.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘lazyeval’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/MASS_7.3-51.1.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘MASS’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/rlang_0.3.0.1.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘rlang’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/viridisLite_0.3.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘viridisLite’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/withr_2.1.2.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘withr’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/Matrix_1.2-15.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘Matrix’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/stringr_1.3.1.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘stringr’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/cli_1.0.1.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘cli’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/scales_1.0.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘scales’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/pillar_1.3.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/mgcv_1.8-25.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘mgcv’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/reshape2_1.4.3.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘reshape2’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/tibble_1.4.2.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘tibble’ had non-zero exit status
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-32~1.3/bin/i386/R" CMD INSTALL -l "C:\Program Files\R\R-3.2.3\library" C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ/downloaded_packages/ggplot2_3.1.0.tar.gz' had status 127
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status

The downloaded source packages are in
	‘C:\Users\igal\AppData\Local\Temp\RtmpcVnpWZ\downloaded_packages’
> library(ggplot2)
Error in library(ggplot2) : there is no package called ‘ggplot2’

What does this error means: "installation of package {package name} had non-zero exit status"?

It seems it still uses R 3.2 and not 3.5... Which version do you have installed on the system now ? and which one are you using ?
You can see when R start or using R.home() in the session.

1 Like

Thanks! I removed I just noticed that some files left from the previous version - I removed them and it working now!

1 Like

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it:

Late to the party, but there are two paths for the install source issue.

First, try.
Second, if it fails, decide if you want to spend the rest of the day debugging the reason (you're a data engineer/programmer/deep internals type) or whether you can live with the earlier precompiled version.

Generally, I find, you have better luck installing from source on the latest version of Ubuntu than either windows or mac.

I agree! :grin:

However, in this case there is no fallback option for installing an earlier binary, since there is no binary at all of rlang available for the old version of R that @igalco14 was (accidentally) running. Two overlapping reasons:

  • The binary archive (which is maintained on a volunteer, unsupported basis by a single person) only continues to update binaries for current-release-minus-1, or "r-oldrel" in CRAN-speak (so, right now, R 3.4)
  • rlang first appeared on CRAN in May 2017. At that time, r-release was R 3.4, and r-oldrel was R 3.3. The version of R that @igalco14 was running (R 3.2) had already fallen too far out of date to receive updates to its binary archive, so I believe no binary version of rlang was ever created for it.

TL;DR: keeping R no more than 1 version behind saves you a world of trouble! :grin:

3 Likes

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.