my google research didn't bring up any usefull results and at this point I don't know what I could try anymore. I am trying to install devtools, in the following setup:
- Ubuntu 20.04 (Virtualboax)
R.version.string= "R version 3.6.3 (2020-02-29)"
- New installation of RStudio (Version 1.2.5042)
I tried to google the specific error ("Error: .onLoad failed in loadNamespace() for 'pkgload', details:"). I found this one link on which the legendary hadley wickham suggested updating the rlang package. Which I did. However it didn't fix the issue.
Has anybody any idea?
I also installed the necessary system dependenvies. However I just got those after I already started the
sudo apt-get install build-essential libcurl4-gnutls-dev libxml2-dev libssl-dev
> install.packages("devtools") Installing package into ‘/home/bjoern/R/x86_64-pc-linux-gnu-library/3.6’ (as ‘lib’ is unspecified) trying URL 'https://cloud.r-project.org/src/contrib/devtools_2.3.0.tar.gz' Content type 'application/x-gzip' length 375227 bytes (366 KB) ================================================== downloaded 366 KB * installing *source* package ‘devtools’ ... ** package ‘devtools’ successfully unpacked and MD5 sums checked ** using staged installation ** R ** inst ** byte-compile and prepare package for lazy loading Error: .onLoad failed in loadNamespace() for 'pkgload', details: call: readRDS(nsInfoFilePath) error: error reading from connection Execution halted ERROR: lazy loading failed for package ‘devtools’ * removing ‘/home/bjoern/R/x86_64-pc-linux-gnu-library/3.6/devtools’ Warning in install.packages : installation of package ‘devtools’ had non-zero exit status