R version 3.3.3 | Unable to install dplyr package

Hi,

I am trying to run R code through IBM SPSS Modeler 18.1 which uses R version 3.3.3
I am unable to install dplyr packages. It throws errors like "compilation failed for package dplyr" or workspace error or readRDS() error. Please advise. I cannot upgrade to latest R version because IBM SPSS Modeler 18.1 only supports R 3.3.3

Regards,
Ashish

Those extracts of the error message are not very informative, Could you post the whole error message so we can see what is going on?, dplyr only requires R >= 3.2 so very likely your problem is related to something else.

Hi,

Please find below complete error message. The error log changed after I installed Rtools.

install.packages("dplyr")
Installing package into ‘C:/Users/ehashsa/Documents/R/win-library/3.3’
(as ‘lib’ is unspecified)
also installing the dependencies ‘ellipsis’, ‘vctrs’, ‘fansi’, ‘pillar’, ‘glue’, ‘Rcpp’, ‘rlang’, ‘tibble’, ‘tidyselect’

There are binary versions available but the source versions are later:
binary source needs_compilation
fansi 0.2.2 0.4.0 TRUE
pillar 1.2.1 1.4.2 FALSE
glue 1.2.0 1.3.1 TRUE
Rcpp 0.12.16 1.0.1 TRUE
rlang 0.2.0 0.4.0 TRUE
tibble 1.4.2 2.1.3 TRUE
tidyselect 0.2.4 0.2.5 TRUE
dplyr 0.7.4 0.8.3 TRUE

Do you want to install from sources the packages which need compilation?
y/n: n
Packages which are only available in source form, and may need compilation of C/C++/Fortran: ‘ellipsis’ ‘vctrs’
Do you want to attempt to install these from sources?
y/n: n
trying URL 'https://ftp.acc.umu.se/mirror/CRAN/bin/windows/contrib/3.3/fansi_0.2.2.zip'
Content type 'application/zip' length 141745 bytes (138 KB)
downloaded 138 KB

trying URL 'https://ftp.acc.umu.se/mirror/CRAN/bin/windows/contrib/3.3/glue_1.2.0.zip'
Content type 'application/zip' length 72364 bytes (70 KB)
downloaded 70 KB

trying URL 'https://ftp.acc.umu.se/mirror/CRAN/bin/windows/contrib/3.3/Rcpp_0.12.16.zip'
Content type 'application/zip' length 4358189 bytes (4.2 MB)
downloaded 4.2 MB

trying URL 'https://ftp.acc.umu.se/mirror/CRAN/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB

trying URL 'https://ftp.acc.umu.se/mirror/CRAN/bin/windows/contrib/3.3/tibble_1.4.2.zip'
Content type 'application/zip' length 172305 bytes (168 KB)
downloaded 168 KB

trying URL 'https://ftp.acc.umu.se/mirror/CRAN/bin/windows/contrib/3.3/tidyselect_0.2.4.zip'
Content type 'application/zip' length 612053 bytes (597 KB)
downloaded 597 KB

trying URL 'https://ftp.acc.umu.se/mirror/CRAN/bin/windows/contrib/3.3/dplyr_0.7.4.zip'
Content type 'application/zip' length 2897358 bytes (2.8 MB)
downloaded 2.8 MB

package ‘fansi’ successfully unpacked and MD5 sums checked
package ‘glue’ successfully unpacked and MD5 sums checked
package ‘Rcpp’ successfully unpacked and MD5 sums checked
package ‘rlang’ successfully unpacked and MD5 sums checked
package ‘tibble’ successfully unpacked and MD5 sums checked
package ‘tidyselect’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
C:\Users\ehashsa\AppData\Local\Temp\RtmpOq1ElZ\downloaded_packages
installing the source package ‘pillar’

trying URL 'https://ftp.acc.umu.se/mirror/CRAN/src/contrib/pillar_1.4.2.tar.gz'
Content type 'application/x-gzip' length 228815 bytes (223 KB)
downloaded 223 KB

ERROR: dependency 'vctrs' is not available for package 'pillar'

  • removing 'C:/Users/ehashsa/Documents/R/win-library/3.3/pillar'

The downloaded source packages are in
‘C:\Users\ehashsa\AppData\Local\Temp\RtmpOq1ElZ\downloaded_packages’
Warning messages:
1: running command '"C:/PROGRA~1/R/R-33~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\ehashsa\Documents\R\win-library\3.3" C:\Users\ehashsa\AppData\Local\Temp\RtmpOq1ElZ/downloaded_packages/pillar_1.4.2.tar.gz' had status 1
2: In install.packages("dplyr") :
installation of package ‘pillar’ had non-zero exit status

You are are telling the installer that you don't want to install those packages but you have to, since they are dependencies of dplyr

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