Trouble installing "car" package in R. - 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.

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

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

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

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

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.

installation of package ‘ggvis’ had non-zero exit status

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.

Resources