error installing qiime2R on R 4.2.0

I tried to install qiime2R in R.4.2.0 (using script here GitHub - jbisanz/qiime2R: Import qiime2 artifacts to R) and received an error. I restarted R and repeated the process. Same error. Confirmed that devtools is installed.

packageVersion('devtools')
[1] ‘2.4.3’
devtools::install_github("jbisanz/qiime2R")
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘pkgload’

I uninstalled R4.2.0 and installed R4.2.1, hoping this may fix the problem, but it did not.

devtools::install_github("jbisanz/qiime2R")
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
there is no package called ‘R6’
packageVersion('devtools')
[1] ‘2.4.3’

I would appreciate if someone help me fix this problem. Thanks.

As with many tools there are dependencies to dependencies. Something has gone wrong with their installation so the easiest way to fix your issue may be to manually install the missing packages. In your case it appears to be R6 and pkgload. Try using for example install.packages("R6") to manually install everything says is missing and eventually you get it installed.

1 Like

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.