rikenbit / iTensor

R package for ICA-based Matrix/Tensor Decomposition
Other
1 stars 1 forks source link

R package loading fails due to mixOmics #3

Closed ritika-giri closed 1 year ago

ritika-giri commented 1 year ago

When I load iTensor in the R workspace using install.packages("iTensor") and library(iTensor) as mentioned in the paper, I get the following error message:

Error: package or namespace load failed for ‘iTensor’ in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]):
 there is no package called ‘mixOmics’

It works after I install mixOmics manually as:

install.packages("BiocManager")
BiocManager::install("mixOmics")

Below also works without any bugs - it skips mixOmics, but does not error out:

library(devtools)
devtools::install_github("rikenbit/iTensor") 
kokitsuyuzaki commented 1 year ago

As you said, I found that mixOmics was not automatically installed in some environment. I'm not sure the reason but to explicitly install mixOmics, I changed the command as follows:

install.packages("BiocManager")
BiocManager::install(c("mixOmics", "iTensor"))

Please see the latest version of the manuscript. https://github.com/openjournals/joss-reviews/issues/5496#issuecomment-1586735597