Installing geojsonio in Colab - r

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!

Related

Can't install packages in Jupyter Lab R kernel

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 face problems on downloading Rcmdr

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

Receiving "package had non-zero exit status" when installing packages on campus Rstudio server?

I'm trying to install ggplot2 on my campus' Rstudio server. Unfortunately I receive the classic "installation of package 'ggplot2' had non-zero exit status." I've looked through the many threads of users who've had the same problem with other packages, but haven't found any workable solutions.
I've tried using install.packages("ggplot2", dependencies = TRUE), which hasn't worked.
Also, I'm running the most recent version of OSX on a MacBook Pro.
This is the error message I receive:
Error: loading failed
Execution halted
ERROR: loading failed
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/vctrs’
Warning in install.packages :
installation of package ‘vctrs’ had non-zero exit status
ERROR: dependency ‘vctrs’ is not available for package ‘pillar’
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/pillar’
Warning in install.packages :
installation of package ‘pillar’ had non-zero exit status
ERROR: dependency ‘pillar’ is not available for package ‘tibble’
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/tibble’
Warning in install.packages :
installation of package ‘tibble’ had non-zero exit status
ERROR: dependency ‘tibble’ is not available for package ‘ggplot2’
* removing ‘/mnt/trafficstop/jrleary/R/x86_64-redhat-linux-gnu-library/3.5/ggplot2’
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status

Trouble installing "car" package in R.

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.

Having trouble installing basic packages in R

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’

Resources