I got it to work by reinstalling R without the i386 files. rlang would install after I installed devtools from github, and I finally got ggplot2 to install from github after removing the i386 architecture, seems there's a build problem with ggplot2 on github right now

3 Likes

The ggplot2 github issue has sent me down a long rabbit hole in the last hour. Glad I'm not the only one.

2 Likes

were you able to get yours working?

No, but I'm wondering if there is a separate or deeper problem going on. rlang won't link to some base functions correctly on installation and that seems to be trickling upwards through other package installations. Might be a directory issue? I'm in over my head at that point.

I had the same problem installing the github version of ggplot2. and then I looked at cran and it seems like ggplot2 on cran was updated a year ago on 2016-12-30.

That means I do need the github version because even the plotly recommends it. but it doesn't work.

After updating to R3.5.0 and the latest RStudio I'm having a similar issue (can't install github ggplot2 or even github tidyverse). I get the issue:

devtools::install_github('tidyverse/tidyverse')
Downloading GitHub repo tidyverse/tidyverse@master
from URL https://api.github.com/repos/tidyverse/tidyverse/zipball/master
Installing tidyverse
"C:/PROGRA~1/R/R-35~1.0/bin/x64/R" --no-site-file --no-environ --no-save --no-restore --quiet CMD INSTALL
"C:/Users/emily_ME/AppData/Local/Temp/RtmpQdeo0I/devtools318460497d12/tidyverse-tidyverse-83f6ec3" --library="C:/Users/emily_ME/OneDrive - Market
Economics Limited/Documents/R/win-library/3.5" --install-tests

  • installing source package 'tidyverse' ...
    ** R
    ** tests
    ** byte-compile and prepare package for lazy loading
    ** help
    *** installing help indices
    converting help for package 'tidyverse'
    finding HTML links ... done
    tidyverse-package html
    tidyverse_conflicts html
    tidyverse_deps html
    tidyverse_logo html
    tidyverse_packages html
    tidyverse_update html
    *** copying figures
    ** building package indices
    ** installing vignettes
    ** testing if installed package can be loaded
    *** arch - i386
    Error: package or namespace load failed for 'tidyverse' in library.dynam(lib, package, package.lib):
    DLL 'rlang' not found: maybe not installed for this architecture?
    Error: loading failed
    Execution halted
    *** arch - x64
    ERROR: loading failed for 'i386'
  • removing 'C:/Users/emily_ME/OneDrive - Market Economics Limited/Documents/R/win-library/3.5/tidyverse'
    In R CMD INSTALL
    Installation failed: Command failed (1)

But rlang installed and loads fine, and it's in the library path that shows when I look at .libPaths()

I tried removing and reinstalling rlang and devtools, and tried using the dev versions of both. None of this is working.

I've also tried with Rtools 3.4 and Rtools 3.5. This is super frustrating as I need the dev version of ggplot2 for geom_sf() and other features.

1 Like

@emilynz I was in the same boat regarding geom_sf so I tried tmap. Works seamlessly with sf and the API is similiar to ggplot2. So if you need to get something done, this might be a good substitution.

1 Like

I just reverted to R 3.4.2 which means I am able to use the existing ggplot2 dev version that I already had installed. Interestingly when I tried to update it to the current github version it doesn't work on 3.4.2 either, so I'm wondering if it's an RStudio issue...?

I should probably try to install outside of RStudio, but don't have time until next week or so due to deadlines etc at work.

1 Like

same with me Now I can't even update in R 3.4.4 version as well. It's like they are trying to update something in ggplot2 which crashes it.

We should wait untill it works on someone's computer.

@emilynz Not an rstudio issue. I can replicate this in and out of R with a vanilla session of R etc.

I was able to install ggplot2 from github in the R vanilla terminal

Hi, I am having similar problems at reinstalling lme4 and ggplot like below:
"""

install.packages('lme4')
Installing package into ‘/home/lsun/R_libs’
(as ‘lib’ is unspecified)
trying URL 'http://cran.cnr.berkeley.edu/src/contrib/lme4_1.1-17.tar.gz'
Content type 'application/x-gzip' length 4103343 bytes (3.9 MB)
==================================================
downloaded 3.9 MB

.Rprofile: Setting cran repositoryn* installing source package ‘lme4’ ...
** package ‘lme4’ successfully unpacked and MD5 sums checked
** libs
g++ -I"/usr/local/lib/R/include" -DNDEBUG -I"/usr/local/lib/R/site-library/Rcpp/include" -I"/home/lsun/R_libs/RcppEigen/include" -I/usr/local/include -DNDEBUG -DEIGEN_DONT_VECTORIZE -fpic -g -O2 -c external.cpp -o external.o
In file included from /usr/local/lib/R/site-library/Rcpp/include/Rcpp.h:77:0,
from /home/lsun/R_libs/RcppEigen/include/RcppEigen.h:26,
from predModule.h:12,
from external.cpp:8:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/Rmath.h: In function ‘double R::pythag(double, double)’:
/usr/local/lib/R/site-library/Rcpp/include/Rcpp/Rmath.h:222:55: error: ‘::Rf_pythag’ has not been declared
inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
^
make: *** [external.o] Error 1
ERROR: compilation failed for package ‘lme4’

  • removing ‘/home/lsun/R_libs/lme4’
  • restoring previous ‘/home/lsun/R_libs/lme4’

The downloaded source packages are in
‘/tmp/RtmpRsM9YS/downloaded_packages’
Warning message:
In install.packages("lme4") :
installation of package ‘lme4’ had non-zero exit status
"""

Any idea? Thanks!

Ahh, yes. I managed to install from github fine (not getting this error anymore) when I next tried - a day or two after my last comment above. I am guessing @Anantadinath was correct - it was something problem in ggplot/tidyverse and they fixed it...?

1 Like

It works fine for me too..

7 posts were split to a new topic: Since installing R 3.5.0 I have a problem installing/updating/building packages that go into the library path of my user account

I have the same issue. I upgraded rlang to 0.2.0.9001, but when I try to deploy my app I get:

Preparing to deploy document...DONE
Uploading bundle for document: 350859...DONE
Deploying bundle: 1399459 for document: 350859 ...
Waiting for task: 528567830
  building: Processing bundle: 1399459
  building: Building image: 1412709
  error: Building package: rlang
################################ Begin Task Log ################################ 
################################# End Task Log ################################# 
Error: Unhandled Exception: Child Task 528567831 failed: Error building image: Error building rlang (0.2.0.9001). R version 3.5.0 currently unavailable
Execution halted

update packages using the following command:

update.packages(checkBuilt=TRUE, ask=FALSE)

For why checkBuilt, refer: https://stackoverflow.com/questions/8828334/updating-packages-in-r-impact-of-checkbuilt-true-or-false

3 Likes

As a Mac user (Sierra, 10.13.4) I also had issues reinstalling some of the packages (stringi, data.table, ggplot2) after the upgrade to R 3.5. Installing "xcode" solved my problem:

  1. Plug in your charger, otherwise the install window might not pop up.
  2. type the magic words to your terminal: xcode-select --install
  3. follow the installation process (it takes about 2-10 minutes).
  4. now package installation via install.packages() should work
1 Like

Did this ever get resolved? I just updated my Shiny app, and it will run using it locally with runApp, but the packages will not install using the rocker/shiny base image when trying to build it into a Docker container.