I'm having the following problem:
When I try to install any R package, at first it downloads the package just fine into a temporal location, and then the following error message appears:
Error: package ‘usethis’ required by ‘devtools’ could not be found
Execution halted
Warning in install.packages :
installation of package ‘lattice’ had non-zero exit status
The wierd part of this is that package usethis is installed and loaded.
Any advise on what can be happening here? I'm a lost there..
I am trying to run rcommander in Rstudio Version 1.2.5001, (I am on Ubuntu 18.04) when I launch
library(Rcmdr)
I get:
Error: package or namespace load failed for ‘RcmdrMisc’ in library.dynam(lib, package, package.lib):
shared object ‘haven.so’ not found
Error: package ‘RcmdrMisc’ could not be loaded
In addition: Warning message:
S3 methods ‘[.haven_labelled’, ‘[.haven_labelled_spss’, ‘as.data.frame.haven_labelled’, ‘as_factor.data.frame’, ‘as_factor.haven_labelled’, ‘as_factor.labelled’, ‘format.pillar_shaft_haven_labelled_chr’, ‘format.pillar_shaft_haven_labelled_num’, ‘is.na.haven_labelled_spss’, ‘print.haven_labelled’, ‘print.haven_labelled_spss’, ‘type_sum.haven_labelled’, ‘zap_formats.data.frame’, ‘zap_formats.default’, ‘zap_label.data.frame’, ‘zap_label.default’, ‘zap_labels.data.frame’, ‘zap_labels.default’, ‘zap_labels.haven_labelled’, ‘zap_labels.haven_labelled_spss’, ‘zap_missing.data.frame’, ‘zap_missing.default’, ‘zap_missing.haven_labelled’, ‘zap_missing.haven_labelled_spss’, ‘zap_widths.data.frame’, ‘zap_widths.default’ were declared in NAMESPACE but not found
trying install.packages("RcmdrMisc") I get:
Installing package into ‘/home/marco/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘RcmdrMisc’ is not available (for R version 3.4.4)
However If i try to install r-cran-rcmdrmisc (1.0-7-1) on my system with apt-get I get:
r-cran-rcmdrmisc is already the newest version (1.0-7-1).
I don't know what to do to fix the issue and run rcommander :(
Help?
Thank you all for your help. I was successfully able to update R (I think..) however now when I run library(Rcmdr)
Loading required package: splines
Loading required package: RcmdrMisc
Loading required package: car
Error: package or namespace load failed for ‘car’ in readRDS(pfile):
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
Error: package ‘car’ could not be loaded
After restarting again Rstudio I got:
Error in readRDS(file) :
cannot read workspace version 3 written by R 3.6.1; need R 3.5.0 or newer
install.packages("rcmdr")
Installing package into ‘/home/marco/R/x86_64-pc-linux-gnu-library/3.4’
(as ‘lib’ is unspecified)
Warning in install.packages :
package ‘rcmdr’ is not available (for R version 3.4.4)
I am puzzled :/
I am using R 3.1.3 and had installed Rcplex via tar.gz file at http://cran.at.r-project.org/web/packages/Rcplex/index.html
When I load the library I get following error:
library (Rcplex)
Error in library(Rcplex) : ‘Rcplex’ is not a valid installed package
EDIT:
The package was installed by extracting the contents of the tar.gz file where other libraries are stored /installed.
Also tried installing it through the source:
install.packages ("<file path>/Rcplex_0.3-2.tar.gz", repos=NULL,type="source")
In install.packages("("<file path>//Rcplex_0.3-2.tar.gz",: installation of package ‘("<file path>/Rcplex_0.3-2.tar.gz’ had non-zero exit status
Lastly, tried via CRAN url.
install.packages ("Rcplex", repos="http://cran.us.r-project.org",type="source")
Warning: unable to access index for repository http://cran.us.r-project.org/src/contrib
Warning message: package ‘Rcplex’ is not available (for R version 3.1.3)
I am using R 3.2.2 on a UNIX server (this is installed to my HOME).
Any package that I try to install returns an error message like this:
install.packages('knitr')
Warning: unable to access index for repository
https://cran.rstudio.com/src/contrib
Warning message:
package ‘knitr’ is not available (for R version 3.2.2)
I've also tried downloading the package source and installing manually, but that doesn't work:
install.packages('/home/baker/knitr_1.11.tar.gz',repos= NULL,type='source')
ERROR: dependencies ‘evaluate’, ‘digest’, ‘formatR’, ‘highr’, ‘markdown’, ‘stringr’, ‘yaml’ are not available for package ‘knitr’
* removing ‘/home/baker/R/lib64/R/library/knitr’
Warning message:
In install.packages("/home/baker/knitr_1.11.tar.gz", repos = NULL, :
installation of package ‘/home/baker/knitr_1.11.tar.gz’ had non-zero exit status
This is obviously a super frustrating problem...any ideas? I'm at a total loss.
I am getting error while installing package KernSmooth. How can I install this pacakge ?
Getting warning messages on not able to access index for repository and one with package not available. Below are example warning message-
Warning: unable to access index for repository
http://lib.stat.cmu.edu/R/CRAN/src/contrib Warning message: package
‘KernSmooth’ is not available (for R version 3.2.1)