Installing rlang in R v3.3.3

Hello everyone, I am new to Rstudio

Due to the limitation of my mac and not planning to change it, I can only download the R version 3.3.3
I would like to download rlang 0.4.6 so as to download ggplot2
as mentioned here:
https://cran.r-project.org/web/packages/rlang/index.html
it means that R v3.3.3 should be able to support rlang v0.4.6
Why I could not update to the latest version and still having rlang v0.1.6

can anyone help please???

Hi @jscchan,
Welcome to RStudio Community Forum.

Have you tried updating the rlang package from CRAN with: update.packages("rlang")? If yes, did you get any error messages? You should post these to help us diagnose the problem. Also, you can post the output from sessionInfo() to provide more details about your set-up.
HTH

thank you so much for your reply.
I have just successfully updated the version of "rlang"
however when it comes to downloading the ggplot2, it showed the error message as below:
would you mind helping me to "decipher the code" please? what should i do next?

library("rlang")
install.packages("ggplot2")

There is a binary version available but the source version is later:
binary source needs_compilation
ggplot2 2.2.1 3.3.1 FALSE

installing the source package ‘ggplot2’

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.3.1.tar.gz'
Content type 'unknown' length 3035612 bytes (2.9 MB)

downloaded 2.9 MB

  • installing source package ‘ggplot2’ ...
    ** package ‘ggplot2’ successfully unpacked and MD5 sums checked
    ** R
    ** data
    *** moving datasets to lazyload DB
    ** inst
    ** preparing package for lazy loading
    Error : object ‘glue_collapse’ is not exported by 'namespace:glue'
    ERROR: lazy loading failed for package ‘ggplot2’
  • removing ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/ggplot2’
  • restoring previous ‘/Library/Frameworks/R.framework/Versions/3.3/Resources/library/ggplot2’
    Warning in install.packages :
    installation of package ‘ggplot2’ had non-zero exit status

The downloaded source packages are in
‘/private/var/folders/s9/90047wj53fx5ws092byt32j80000gn/T/RtmpFdjF7w/downloaded_packages’

Hi @jscchan,
You will most likely have to also install the other packages that ggplot2 uses:
install.packages("ggplot2", dependencies=TRUE)
HTH

1 Like

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