I'm trying to install basic packages in R but having a lot of trouble. I've tried several solutions but am having trouble getting to the bottom of it. I've added dependencies = TRUE, made sure my R was updated, tried to manually install packages, all to no avail.
Error message: also installing the dependencies ‘rlang’, ‘utf8’, ‘pillar’, ‘tibble’, ‘testthat’, ‘covr’
Warning message in install.packages("readr", dependencies = TRUE):
“installation of package ‘rlang’ had non-zero exit status”Warning message in install.packages("readr", dependencies = TRUE):
“installation of package ‘utf8’ had non-zero exit status”Warning message in install.packages("readr", dependencies = TRUE):
“installation of package ‘covr’ had non-zero exit status”Warning message in install.packages("readr", dependencies = TRUE):
“installation of package ‘pillar’ had non-zero exit status”Warning message in install.packages("readr", dependencies = TRUE):
“installation of package ‘testthat’ had non-zero exit status”Warning message in install.packages("readr", dependencies = TRUE):
“installation of package ‘tibble’ had non-zero exit status”Warning message in install.packages("readr", dependencies = TRUE):
“installation of package ‘readr’ had non-zero exit status”Updating HTML index of packages in '.Library'
Making 'packages.html' ... done
also installing the dependencies ‘utf8’, ‘pillar’, ‘bit’, ‘glue’, ‘purrr’, ‘rlang’, ‘tibble’, ‘bit64’, ‘covr’, ‘dbplyr’, ‘dtplyr’, ‘ggplot2’, ‘Lahman’, ‘microbenchmark’, ‘nycflights13’, ‘RMySQL’, ‘RPostgreSQL’, ‘RSQLite’, ‘testthat’
Related
I have tried to install basic packages in R using the R Jupyter lab kernel, but got this error message:
install.packages("devtools", repos='http://cran.us.r-project.org')
also installing the dependencies ‘credentials’, ‘curl’, ‘gert’, ‘gh’,
‘httr’, ‘ragg’, ‘usethis’, ‘pkgdown’, ‘rcmdcheck’, ‘rversions’,
‘urlchecker’
Warning message in install.packages("devtools", repos =
"http://cran.us.r-project.org"): “installation of package ‘curl’ had
non-zero exit status” Warning message in install.packages("devtools",
repos = "http://cran.us.r-project.org"): “installation of package
‘ragg’ had non-zero exit status” Warning message in
install.packages("devtools", repos = "http://cran.us.r-project.org"):
“installation of package ‘credentials’ had non-zero exit status”
Warning message in install.packages("devtools", repos =
"http://cran.us.r-project.org"): “installation of package ‘httr’ had
non-zero exit status” Warning message in install.packages("devtools",
repos = "http://cran.us.r-project.org"): “installation of package
‘rcmdcheck’ had non-zero exit status” Warning message in
install.packages("devtools", repos = "http://cran.us.r-project.org"):
“installation of package ‘rversions’ had non-zero exit status” Warning
message in install.packages("devtools", repos =
"http://cran.us.r-project.org"): “installation of package ‘urlchecker’
had non-zero exit status” Warning message in
install.packages("devtools", repos = "http://cran.us.r-project.org"):
“installation of package ‘gert’ had non-zero exit status” Warning
message in install.packages("devtools", repos =
"http://cran.us.r-project.org"): “installation of package ‘gh’ had
non-zero exit status” Warning message in install.packages("devtools",
repos = "http://cran.us.r-project.org"): “installation of package
‘pkgdown’ had non-zero exit status” Warning message in
install.packages("devtools", repos = "http://cran.us.r-project.org"):
“installation of package ‘usethis’ had non-zero exit status” Warning
message in install.packages("devtools", repos =
"http://cran.us.r-project.org"): “installation of package ‘devtools’
had non-zero exit status” Updating HTML index of packages in
'.Library'
Making 'packages.html' ... done
I have tried to solve this problem using the following code:
Cannot install R packages in Jupyter Notebook
install.packages('IRkernel')
IRkernel::installspec(user = FALSE)
But it does not work. Any idea to fix this problem?
Do you work with Jupyter lab with R kernel? Did you have this issue?
I need your help.
I am trying to download Rcmdr but I have these messages in my screen. Can you please help me?
> install.packages("Rcmdr")
Installing package into ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2’
(as ‘lib’ is unspecified)
also installing the dependencies ‘interp’, ‘latticeExtra’, ‘Hmisc’, ‘pbkrtest’, ‘RcppEigen’, ‘RcmdrMisc’, ‘car’, ‘effects’, ‘lme4’
ERROR: failed to lock directory ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2’ for modifying
Try removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/00LOCK-RcppEigen’
Warning in install.packages :
installation of package ‘RcppEigen’ had non-zero exit status
ERROR: dependency ‘RcppEigen’ is not available for package ‘interp’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/interp’
Warning in install.packages :
installation of package ‘interp’ had non-zero exit status
ERROR: dependency ‘RcppEigen’ is not available for package ‘lme4’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/lme4’
Warning in install.packages :
installation of package ‘lme4’ had non-zero exit status
ERROR: dependency ‘interp’ is not available for package ‘latticeExtra’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/latticeExtra’
Warning in install.packages :
installation of package ‘latticeExtra’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘pbkrtest’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/pbkrtest’
Warning in install.packages :
installation of package ‘pbkrtest’ had non-zero exit status
ERROR: dependency ‘lme4’ is not available for package ‘effects’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/effects’
Warning in install.packages :
installation of package ‘effects’ had non-zero exit status
ERROR: dependency ‘latticeExtra’ is not available for package ‘Hmisc’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/Hmisc’
Warning in install.packages :
installation of package ‘Hmisc’ had non-zero exit status
ERROR: dependencies ‘pbkrtest’, ‘lme4’ are not available for package ‘car’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/car’
Warning in install.packages :
installation of package ‘car’ had non-zero exit status
ERROR: dependencies ‘car’, ‘Hmisc’ are not available for package ‘RcmdrMisc’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/RcmdrMisc’
Warning in install.packages :
installation of package ‘RcmdrMisc’ had non-zero exit status
ERROR: dependencies ‘RcmdrMisc’, ‘car’, ‘effects’, ‘lme4’ are not available for package ‘Rcmdr’
* removing ‘/home/lazaros/R/x86_64-pc-linux-gnu-library/4.2/Rcmdr’
Warning in install.packages :
installation of package ‘Rcmdr’ had non-zero exit status
The downloaded source packages are in
‘/tmp/RtmpMWgMKX/downloaded_packages’
I expected to download Rcmdr but it didn't
I'm trying to install geojsonio in Colab using:
install.packages("geojsonio")
library(geojsonio)
However, the following error arises:
Installing package into ‘/usr/local/lib/R/site-library’
(as ‘lib’ is unspecified)
also installing the dependencies ‘triebeard’, ‘geometries’, ‘jsonify’, ‘rapidjsonr’, ‘sfheaders’, ‘urltools’, ‘httpcode’, ‘protolite’, ‘lazyeval’, ‘geojsonsf’, ‘rgeos’, ‘crul’, ‘maptools’, ‘V8’, ‘geojson’, ‘jqr’
Warning message in install.packages("geojsonio"):
“installation of package ‘protolite’ had non-zero exit status”
Warning message in install.packages("geojsonio"):
“installation of package ‘jqr’ had non-zero exit status”
Warning message in install.packages("geojsonio"):
“installation of package ‘geojson’ had non-zero exit status”
Warning message in install.packages("geojsonio"):
“installation of package ‘geojsonio’ had non-zero exit status”
Error in library(geojsonio): there is no package called ‘geojsonio’
Traceback:
1. library(geojsonio)
Any idea why it's happening?
Thanks!
I'm trying to solve a problem concerning the installation of the package on the Raspberry Pi 3 B+ "finstr" for a project. For the installation of finstr, I have to install another package named: "tidyverse".
Output on console:
c_local’, ‘default_missing.data.frame’, ‘default_missing.default’, ‘dim.tbl_cube’, ‘distinct.data.f [... truncated]
* DONE (ggplot2)
ERROR: dependencies ‘broom’, ‘tidyr’ are not available for package ‘modelr’
* removing ‘/root/R/arm-unknown-linux-gnueabihf-library/3.5/modelr’
ERROR: dependencies ‘broom’, ‘dbplyr’, ‘modelr’, ‘tidyr’ are not available for package ‘tidyverse’
* removing ‘/root/R/arm-unknown-linux-gnueabihf-library/3.5/tidyverse’
The downloaded source packages are in
‘/tmp/RtmpQfqxqe/downloaded_packages’
Warning messages:
1: In install.packages("tidyverse") :
installation of package ‘dbplyr’ had non-zero exit status
2: In install.packages("tidyverse") :
installation of package ‘tidyr’ had non-zero exit status
3: In install.packages("tidyverse") :
installation of package ‘broom’ had non-zero exit status
4: In install.packages("tidyverse") :
installation of package ‘modelr’ had non-zero exit status
5: In install.packages("tidyverse") :
installation of package ‘tidyverse’ had non-zero exit status
>
I had used this to try to install the car package:
install.packages("car", dependencies=TRUE, INSTALL_opts = c('--no-lock'))
but received this error:
ERROR: dependency ‘openxlsx’ is not available for package ‘rio’
* removing ‘/home/dan-laptop/R/x86_64-pc-linux-gnu-library/3.2/rio’
Warning in install.packages :
installation of package ‘rio’ had non-zero exit status
ERROR: dependency ‘rio’ is not available for package ‘car’
* removing ‘/home/dan-laptop/R/x86_64-pc-linux-gnu-library/3.2/car’
Warning in install.packages :
installation of package ‘car’ had non-zero exit status
ERROR: dependency ‘car’ is not available for package ‘alr4’
* removing ‘/home/dan-laptop/R/x86_64-pc-linux-gnu-library/3.2/alr4’
Warning in install.packages :
installation of package ‘alr4’ had non-zero exit status
I tried installing the dependencies individually with no luck. Any help would be greatly appreciated. Thanks.