Entering edit mode
I have problem to install the XCMS package use the code below
Code should be placed in three backticks as shown below
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("xcms")
# Below is the error msg
Error: package or namespace load failed for ‘MSnbase’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
object 'pkgInfo' not found
Error: package ‘MSnbase’ could not be loaded
In addition: Warning messages:
1: In loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
package ‘XML’ has no 'package.rds' in Meta/
2: In loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
package ‘XML’ has no 'package.rds' in Meta/
# please also include the results of running the following in an R session
I have install MSnbase with the code below
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("MSnbase")
But when I tried to library it, I received the same msg as I did for XCMS see below
Error: package or namespace load failed for ‘MSnbase’ in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]):
object 'pkgInfo' not found
In addition: Warning message:
In loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
package ‘XML’ has no 'package.rds' in Meta/
My R is the lastest I can find 4.1.2.
Could anyone help please I have been trying rthis for quite some time.