I am trying to install.packages('blavaan') in my Ubuntu laptop, but I get an install error that I don't understand. After the compile steps complete:
installing to /home/larry/R/x86_64-pc-linux-gnu-library/3.6/00LOCK-blavaan/00new/blavaan/libs
** byte-compile and prepare package for lazy loading
Error in readRDS(nsInfoFilePath) : error reading from connection
Calls: ... namespaceImportFrom -> asNamespace -> loadNamespace -> readRDS
ERROR: lazy loading failed for package ‘blavaan’
- removing ‘/home/larry/R/x86_64-pc-linux-gnu-library/3.6/blavaan’
The install goes fine up to the point that R tries to byte compile and prepare for lazy loading. Then an error occurs in readRDS(nsInfoFilePath), and the install abends. This is a consistent issue, and occurs whether I try the install from RStudio or directly in R. Interestingly, there was no problem installing blavaan into my Windows 10 box. This seems not to be a problem with the blavaan compilation. The last g++ compile step completes successfully, and then the install system tries to install the package into my private library. I don't know how the "byte compile and prepare package for lazy loading" step is supposed to work, so I don't understand if this problem is something in the blavaan package, something in the byte compile/lazy loading step, or some sort of privilege problem specific to my Ubuntu box. Thanks in advance for any suggestions.
Running R 3.6.1, RStudio 1.2.5019, Windows 10 64 bit uptodate.