bdaisley / isolateR

Automated processing of Sanger sequencing data, taxonomic profiling, and generation of microbial strain libraries
Other
9 stars 1 forks source link

ERROR: lazy loading failed for package 'isolateR' #3

Closed vancurens closed 5 months ago

vancurens commented 8 months ago

Error when installing isolateR in R 4.3.2

* installing *source* package 'isolateR' ...
** using staged installation
** R
** inst
** byte-compile and prepare package for lazy loading
Error: object 'patchworkGrob' is not exported by 'namespace:patchwork'
Execution halted
ERROR: lazy loading failed for package 'isolateR'

This has to do with multiple versions of patchwork package being available, as described here

Current workaround:

remove.packages('patchwork')

install.packages('patchwork', repos='http://cran.us.r-project.org')
#now the package version should appear as 1.1.3 not 2.4

devtools::install_github("bdaisley/isolateR")
#select 'None' when prompted to update dependencies, assuming all other packages have already been installed
bdaisley commented 8 months ago

This issue should be resolved by commit d0e8874 and all new installations going forward should be successful.

Those who attempted to install the isolateR package prior to the fix will likely still face problems due to the mismatched version dependencies for LPSN and patchwork packages. To fix this, try running:

remove.packages("isolateR")
remove.packages("LPSN")
remove.packages("patchwork")

Exit your current R or RStudio window, open a fresh instance, and then try a fresh install:

devtools::install_github("bdaisley/isolateR")

You should now see "DONE (isolateR)" on the last line indicating a successful installation.