Issues installing pillar

Hello. I'm new to R and am having some difficulty installing pillar (needed for dplyr). While I have most packages I need, I can't get pillar to load.

I'm not sure if this is the issue, but I have attempted to install a later version of rlang to no avail.
namespace 'rlang' 0.3.4 is being loaded, but >= 0.4.0 is required

Below is the full script / error message for context.

Any ideas what I can do / where I'm going wrong?

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


  There are binary versions available but the source versions are later:
            binary source needs_compilation
ellipsis     0.1.0  0.3.1              TRUE
pillar       1.3.1  1.4.6             FALSE
glue         1.3.1  1.4.1              TRUE
rlang        0.3.4  0.4.7              TRUE
tibble       2.1.1  3.0.3              TRUE
tidyselect   0.2.5  1.1.0              TRUE
vctrs        0.1.0  0.3.2              TRUE
dplyr      0.8.0.1  1.0.1              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/ellipsis_0.1.0.zip'
Content type 'application/zip' length 30847 bytes (30 KB)
downloaded 30 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/glue_1.3.1.zip'
Content type 'application/zip' length 172415 bytes (168 KB)
downloaded 168 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/tibble_2.1.1.zip'
Content type 'application/zip' length 238931 bytes (233 KB)
downloaded 233 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/tidyselect_0.2.5.zip'
Content type 'application/zip' length 625710 bytes (611 KB)
downloaded 611 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/vctrs_0.1.0.zip'
Content type 'application/zip' length 499748 bytes (488 KB)
downloaded 488 KB

trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/dplyr_0.8.0.1.zip'
Content type 'application/zip' length 3029353 bytes (2.9 MB)
downloaded 2.9 MB

package ‘ellipsis’ successfully unpacked and MD5 sums checked
package ‘glue’ 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 ‘vctrs’ successfully unpacked and MD5 sums checked
package ‘dplyr’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\TO670023\AppData\Local\Temp\Rtmpu03EMs\downloaded_packages
installing the source packages ‘pillar’, ‘lifecycle’

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

trying URL 'https://cran.rstudio.com/src/contrib/lifecycle_0.2.0.tar.gz'
Content type 'application/x-gzip' length 164455 bytes (160 KB)
downloaded 160 KB

* installing *source* package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT'
** R
** inst
** preparing package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) : 
  namespace 'rlang' 0.3.4 is being loaded, but >= 0.4.0 is required
ERROR: lazy loading failed for package 'lifecycle'
* removing 'C:/Users/TO670023/OneDrive/Documents/R/win-library/3.4/lifecycle'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\TO670023\OneDrive\Documents\R\win-library\3.4" C:\Users\TO670023\AppData\Local\Temp\Rtmpu03EMs/downloaded_packages/lifecycle_0.2.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'pillar'
* removing 'C:/Users/TO670023/OneDrive/Documents/R/win-library/3.4/pillar'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\TO670023\OneDrive\Documents\R\win-library\3.4" C:\Users\TO670023\AppData\Local\Temp\Rtmpu03EMs/downloaded_packages/pillar_1.4.6.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘pillar’ had non-zero exit status

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

What error do you get when trying to update rlang?

Thanks for the reply. From what I can understand, I'm not able to update it successfully so the binary version is installed (again). I tried installing a specific version using some info I found online but had no success. I cleverly deleted my history files today while trying to start afresh so can't share the output of that exercise. Below is the message when trying to update rlang..

install.packages("rlang")
Installing package into ‘C:/Users/TO670023/OneDrive/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)

  There is a binary version available but the source version is later:
      binary source needs_compilation
rlang  0.3.4  0.4.7              TRUE

  Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip'
Content type 'application/zip' length 1080437 bytes (1.0 MB)
downloaded 1.0 MB

package ‘rlang’ successfully unpacked and MD5 sums checked

The downloaded binary packages are in
	C:\Users\TO670023\AppData\Local\Temp\RtmpYDw0Yz\downloaded_packages
>

I thought I responded to your post but it looks like I just replied to my own. Please see my other comment (I copied in the script / error).

I'm also wondering if this could help -

I unfortunately don't understand the instructions fully.

I can run this
file.edit(file.path("~", ".Rprofile"))

But then I don't understand this - "Comment out all the loaded packages." After running that line of code above, a blank .Rprofile page loads (with no text showing)..

Since you are using an older R version, to install the latest rlang version you need to install from source (not the binary version), have in mind that you need to have Rtools installed in your system (not in R) to be able to compile packages from source.

install.packages("rlang", type="source")

Alternatively, you could update R to the latest version (4.0.2) so you have access to precompiled binaries.

Also, be aware that R use to have issues with synced folders so you might want to use the system-level package library instead of your user-level library that is synced by OneDrive.

1 Like

Thank you!

There's a hurdle for me with regards to IT / enterprise architecture (re getting a newer version of R and/or Rtools installed).

I was able to get pillar up and running. A colleague, who has pillar, also had the same version of rlang (he's been using R for longer and hadn't encountered these issues). IT copied the pillar folder from his library into mine. Quick restart of R and all was well.

I did try following your instructions. Below is the output if you're interested.

I opened Tools and tried to install from the source. I'm not entirely sure if this was Rtools as distinct from R as it opened within my R Studio window.

> install.packages("rlang", type="source")
Installing package into ‘C:/Users/TO670023/OneDrive/Documents/R/win-library/3.4’
(as ‘lib’ is unspecified)
trying URL 'https://cran.rstudio.com/src/contrib/rlang_0.4.7.tar.gz'
Content type 'application/x-gzip' length 847308 bytes (827 KB)
downloaded 827 KB

* installing *source* package 'rlang' ...
** package 'rlang' successfully unpacked and MD5 sums checked
Warning in as.POSIXlt.POSIXct(x, tz) : unknown timezone 'GMT'
** libs
Warning: R include directory is empty -- perhaps need to install R-devel.rpm or similar

*** arch - i386
Warning: running command 'make -f "Makevars" -f "C:/PROGRA~1/R/R-34~1.2/etc/i386/Makeconf" -f "C:/PROGRA~1/R/R-34~1.2/share/make/winshlib.mk" SHLIB="rlang.dll" OBJECTS="capture.o export.o internal.o lib.o version.o"' had status 127
ERROR: compilation failed for package 'rlang'
* removing 'C:/Users/TO670023/OneDrive/Documents/R/win-library/3.4/rlang'
* restoring previous 'C:/Users/TO670023/OneDrive/Documents/R/win-library/3.4/rlang'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-34~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\TO670023\OneDrive\Documents\R\win-library\3.4" C:\Users\TO670023\AppData\Local\Temp\RtmpQL1TCv/downloaded_packages/rlang_0.4.7.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘rlang’ had non-zero exit status

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

Thanks for the prompt assistance!

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