Rssa installation in R - svd had non-zero exit status - r

What to do with the following errors, please? I am installing Rssa package.
install.packages("Rssa")
I obtained:
ERROR: compilation failed for package ‘svd’
* removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/4.1/svd’
Warning in install.packages :
installation of package ‘svd’ had non-zero exit status
ERROR: dependency ‘quadprog’ is not available for package ‘tseries’
* removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/4.1/tseries’
Warning in install.packages :
installation of package ‘tseries’ had non-zero exit status
ERROR: dependencies ‘fracdiff’, ‘tseries’, ‘urca’, ‘RcppArmadillo’ are not available for package ‘forecast’
* removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/4.1/forecast’
Warning in install.packages :
installation of package ‘forecast’ had non-zero exit status
ERROR: dependencies ‘svd’, ‘forecast’ are not available for package ‘Rssa’
* removing ‘/home/linux/R/x86_64-pc-linux-gnu-library/4.1/Rssa’
Warning in install.packages :
installation of package ‘Rssa’ had non-zero exit status

Related

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

Non-zero exit status package installation error on RStudio server

I've been trying to run an LGCP in 'inlabru' that was taking forever so I've been set up with a Unix account to access an RStudio server. The trouble is now I am getting non-zero exit status installation errors for a few packages. Specifically 'rgdal' and 'inlabru'. I have tried (for 'rgdal') installing the dependencies and PROJ/GDAL without any success. The end of the error is:
configure: error: gdal-config not found or not executable.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/rgdal’
Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status
ERROR: dependency ‘systemfonts’ is not available for package ‘svglite’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/svglite’
Warning in install.packages :
installation of package ‘svglite’ had non-zero exit status
ERROR: dependency ‘terra’ is not available for package ‘raster’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/raster’
Warning in install.packages :
installation of package ‘raster’ had non-zero exit status
ERROR: dependencies ‘s2’, ‘units’ are not available for package ‘sf’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/sf’
Warning in install.packages :
installation of package ‘sf’ had non-zero exit status
ERROR: dependency ‘raster’ is not available for package ‘leaflet’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/leaflet’
Warning in install.packages :
installation of package ‘leaflet’ had non-zero exit status
ERROR: dependencies ‘sf’, ‘svglite’ are not available for package ‘leafpop’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/leafpop’
Warning in install.packages :
installation of package ‘leafpop’ had non-zero exit status
ERROR: dependencies ‘raster’, ‘terra’ are not available for package ‘satellite’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/satellite’
Warning in install.packages :
installation of package ‘satellite’ had non-zero exit status
ERROR: dependencies ‘leaflet’, ‘raster’, ‘sf’ are not available for package ‘leafem’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/leafem’
Warning in install.packages :
installation of package ‘leafem’ had non-zero exit status
ERROR: dependencies ‘leafem’, ‘leaflet’, ‘leafpop’, ‘raster’, ‘satellite’, ‘sf’ are not available for package ‘mapview’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/mapview’
Warning in install.packages :
installation of package ‘mapview’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmp57pHoc/downloaded_packages’
I am thinking it is the library that is failing the installation because it's a server, but I've tried changing .libPaths() to a folder on my drive with no success. I have also tried running
install.packages("rgdal", type="source", repos="http://R-Forge.R-project.org", configure.args=c('--with-gdal-config=/opt/local/bin/gdal-config'))
and get
configure: error: gdal-config not found - configure argument error.
ERROR: configuration failed for package ‘rgdal’
* removing ‘/home/staff4/ebryce/R/x86_64-pc-linux-gnu-library/4.1/rgdal’
Warning in install.packages :
installation of package ‘rgdal’ had non-zero exit status
The downloaded source packages are in
‘/tmp/Rtmp57pHoc/downloaded_packages’
Any help is greatly appreciated!
gdal (and friends) are not installed
sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install libudunits2-dev libgdal-dev libgeos-dev libproj-dev

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.

Cannot install Rfacebook

When i try to install Rfacebook for R version-3.1.3 in ubuntu i get the following error.
--------------------------------------------------------------------
ERROR: configuration failed for package ‘curl’
* removing ‘/home/gadheyan/R/x86_64-unknown-linux-gnu-library/3.1/curl’
Warning in install.packages :
installation of package ‘curl’ had non-zero exit status
ERROR: dependency ‘curl’ is not available for package ‘httr’
* removing ‘/home/gadheyan/R/x86_64-unknown-linux-gnu-library/3.1/httr’
Warning in install.packages :
installation of package ‘httr’ had non-zero exit status
ERROR: dependency ‘httr’ is not available for package ‘Rfacebook’
* removing ‘/home/gadheyan/R/x86_64-unknown-linux-gnu-library/3.1/Rfacebook’
Warning in install.packages :
installation of package ‘Rfacebook’ had non-zero exit status
The source packages i've downloaded are located in
‘/tmp/RtmpvPtGxz/downloaded_packages’
It says that curl and httr packages are not available. So how can i install it so as to use Rfacebook.

Resources