Error Loading in GenomicSEM Package

126 views
Skip to first unread message

rmat...@gmail.com

unread,
Nov 18, 2020, 8:54:29 AM11/18/20
to Genomic SEM Users
Recently when trying to load the GenomicSEM package, I am getting an error of:

Error: package or namespace load failed for ‘GenomicSEM’ in namespaceImportFrom(self, asNamespace(ns), from = from, except = except):
 lazy-load database '/usr/local/lib/R/site-library/magrittr/R/magrittr.rdb' is corrupt

Has anyone else received this error? I am running R version 4.0.2, and using the following lines of code to install and load GenomicSEM package.

install.packages("devtools")
library(devtools)
install_github("MichelNivard/GenomicSEM", dependencies=TRUE)
require(GenomicSEM)

Any suggestions?

Thank You,
Ravi

agro...@gmail.com

unread,
Nov 18, 2020, 9:03:14 AM11/18/20
to Genomic SEM Users
Hi Ravi, 

It looks like loading in the magrittr dependency is throwing the error. I was able to install by selecting to update all dependencies (which you presumably also chose since loading in the dependency is throwing the error in the first place) and then also choosing to install from the sources (screen shot of prompts in R and the options I chose below). If that still doesn't work for you, none of these minor updates in package dependencies should affect Genomic SEM so you could also set dependencies to FALSE or choose to update none at the first prompt. 

Best, 
  AndrewScreen Shot 2020-11-18 at 8.59.17 AM.png

rmat...@gmail.com

unread,
Nov 18, 2020, 9:34:06 AM11/18/20
to Genomic SEM Users
I figured it out! I'm running GenomicSEM from a R docker image. And if I install magrittr separately before installing GenomicSEM, it loads fine. Not sure if there is a further error with the docker image or not.

Thanks,
Ravi
Reply all
Reply to author
Forward
0 new messages