I just started using R in Fedora 25, but could not install any packages in R GUI or RStudio. Take dplyr for example,
I got the the message as below:
The downloaded source packages are in
'/tmp/RtmpM3VRo3/downloaded_packages'
Updating HTML index of packages in '.Library'
Making 'packages.html'...done
Warning messages:
1: In install.packages(“dplyr”):
installation of package 'glue' had non-zero exit status
2: In install.packages(“dplyr”):
installation of package 'rlang' had non-zero exit status
3: In install.packages(“dplyr”):
installation of package 'Rcpp' had non-zero exit status
4: In install.packages(“dplyr”):
installation of package 'bindrcpp' had non-zero exit status
5: In install.packages(“dplyr”):
installation of package 'tibble' had non-zero exit status
6: In install.packages(“dplyr”):
installation of package 'dplyr' had non-zero exit status
Then I use library(dplyr) to check if the package has been installed, and got the message:
there is no package called 'dplyr'
Related
I need to install this package into R 3.5 so I can submit an R script that was created on that version. I have to do this via linux. After typing R35, I run install.packages('tidyverse') and get the folloing error:
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace ‘vctrs’ 0.3.6 is being loaded, but >= 0.3.7 is required
ERROR: lazy loading failed for package ‘tidyr’
* removing ‘/ua/jwlorge/R/x86_64-pc-linux-gnu-library/3.5/tidyr’
ERROR: dependency ‘dtplyr’ is not available for package ‘tidyverse’
* removing ‘/ua/jwlorge/R/x86_64-pc-linux-gnu-library/3.5/tidyverse’
The downloaded source packages are in
‘/tmp/RtmpAHxP3R/downloaded_packages’
Warning messages:
1: In install.packages("tidyverse") :
installation of package ‘vctrs’ had non-zero exit status
2: In install.packages("tidyverse") :
installation of package ‘ellipsis’ had non-zero exit status
3: In install.packages("tidyverse") :
installation of package ‘hms’ had non-zero exit status
4: In install.packages("tidyverse") :
installation of package ‘pillar’ had non-zero exit status
5: In install.packages("tidyverse") :
installation of package ‘tibble’ had non-zero exit status
6: In install.packages("tidyverse") :
installation of package ‘dplyr’ had non-zero exit status
7: In install.packages("tidyverse") :
installation of package ‘dbplyr’ had non-zero exit status
8: In install.packages("tidyverse") :
installation of package ‘dtplyr’ had non-zero exit status
9: In install.packages("tidyverse") :
installation of package ‘tidyr’ had non-zero exit status
10: In install.packages("tidyverse") :
installation of package ‘tidyverse’ had non-zero exit status
I searched online and found other people who had this problem but none of the suggestions worked. I tried updating vctrs and rlang. This is the error I get when I try to re-install vctrs:
Error : .onLoad failed in loadNamespace() for 'rlang', details:
call: NULL
error: 'is_character' is not an exported object from 'namespace:rlang'
ERROR: lazy loading failed for package ‘vctrs’
* removing ‘/ua/jwlorge/R/x86_64-pc-linux-gnu-library/3.5/vctrs’
Re-installing rlang was successful but didn't solve the problem. I also found online that re-starting R solves the problem, but I am using linux and I am a bit new to it. I don't know how you would restart R35 in linux.
I have tidyverse succesfully installed in in another version but not in 3.5. Does anyone have an idea what is causing this issue? Thanks!
I just started using RStudio on Azure Databricks. After I select the cluster and click on the Libraries tab I managed to install few extra packages (timetk, tidymodels, rules, doFutures). But when I tried to install the modelitme package I got the following error:
java.lang.RuntimeException: Installation failed with message:
Error installing R package: Could not install package with error: installation of package ‘V8’ had non->zero exit status installation of package ‘rstan’ had non-zero exit status installation of package >‘prophet’ had non-zero exit status installation of package ‘modeltime’ had non-zero exit status Full >error log available at /databricks/driver/library-install-logs/r-package-installation-2020-10->03T10:31:18Z-vcap9s0e.log
Error installing R package: Could not install package with error: installation of package ‘V8’ had non->zero exit status installation of package ‘rstan’ had non-zero exit status installation of package >‘prophet’ had non-zero exit status installation of package ‘modeltime’ had non-zero exit status
How do I solve problem like this?
I am trying to follow this guide to get R as a usable language in jupyter notebook.
The first step is to run:
install.packages(c('repr', 'IRdisplay', 'evaluate', 'crayon', 'pbdZMQ', 'devtools', 'uuid', 'digest'))
But even after running this command, I still cannot execute the next step:
devtools::install_github('IRkernel/IRkernel')
returning the error:
Error in loadNamespace(name) : there is no package called ‘devtools’
If you look at the comment section of the link I posted someone else seems to also have run into this problem.
Update:
Scott Richie suggested I rerun install.packages('devtools')
this returned:
The downloaded source packages are in
‘/tmp/RtmpgBI8IU/downloaded_packages’
Warning messages:
1: In install.packages("devtools") :
installation of package ‘curl’ had non-zero exit status
2: In install.packages("devtools") :
installation of package ‘openssl’ had non-zero exit status
3: In install.packages("devtools") :
installation of package ‘git2r’ had non-zero exit status
4: In install.packages("devtools") :
installation of package ‘httr’ had non-zero exit status
5: In install.packages("devtools") :
installation of package ‘gh’ had non-zero exit status
6: In install.packages("devtools") :
installation of package ‘usethis’ had non-zero exit status
7: In install.packages("devtools") :
installation of package ‘devtools’ had non-zero exit status
UPDATE 2:
I read up on related threads and was able to get devtools. but I ran into the problem:
> IRkernel::installspec()
Error in IRkernel::installspec() :
jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 1.
This other thread had exited with code 127 and none of the solution did not work in my case. : jupyter-client has to be installed but “jupyter kernelspec --version” exited with code 127
Not able to use tidyverse package after installing it.
install.packages("tidyverse")
running command '"C:/PROGRA~1/R/R-32~1.3/bin/x64/R" CMD INSTALL -l "C:\Users\CHOUDJI1\AppData\Local\R\win64-library\3.2" C:\Users\CHOUDJI1\AppData\Local\Temp\RtmpMJl1ha/downloaded_packages/tidyverse_1.2.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘tidyverse’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\CHOUDJI1\AppData\Local\Temp\RtmpMJl1ha\downloaded_packages’
I'm on Ubuntu 12.04.5 and have R v.3.1.3 installed.
I'm using the command
install.packages("ggvis")
And that yields
ERROR: dependency ‘mime’ is not available for package ‘shiny’
* removing ‘/home/milia/R/x86_64-pc-linux-gnu-library/3.1/shiny’
ERROR: dependency ‘shiny’ is not available for package ‘ggvis’
* removing ‘/home/milia/R/x86_64-pc-linux-gnu-library/3.1/ggvis’
The downloaded source packages are in
‘/tmp/Rtmp6Cz9En/downloaded_packages’
Warning messages:
1: In install.packages("ggvis") :
installation of package ‘shiny’ had non-zero exit status
2: In install.packages("ggvis") :
installation of package ‘ggvis’ had non-zero exit status
So I figured I had to install shiny first. So I typed
install.packages("shiny")
Which gave:
ERROR: dependency ‘mime’ is not available for package ‘shiny’
* removing ‘/home/milia/R/x86_64-pc-linux-gnu-library/3.1/shiny’
The downloaded source packages are in
‘/tmp/Rtmp6Cz9En/downloaded_packages’
Warning message:
In install.packages("shiny") :
installation of package ‘shiny’ had non-zero exit status
So I thought installing mime.
Did as usual
install.packages("mime")
Which gave
Warning message:
In install.packages("mime") :
installation of package ‘mime’ had non-zero exit status
I'm not sure what to do next, and the similar problems in stack with a non-zero exit status didn't help much.
My Rprofile can be found here.