Search
Question: mzR library issue
0
gravatar for peter.jsbae
13 months ago by
peter.jsbae0 wrote:

Hi, 

I am trying to install mzR package.

But, when I set "library("mzR") I got Error message like below. 

> library("mzR") # error
Loading required package: Rcpp
Error in unloadNamespace(package) : 
  namespace ‘Rcpp’ is imported by ‘scales’, ‘reshape2’, ‘readr’, ‘tibble’, ‘plyr’ so cannot be unloaded
Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc,  : 
  Package ‘Rcpp’ version 0.12.9 cannot be unloaded
> library("Rcpp")
Error in unloadNamespace(package) : 
  namespace ‘Rcpp’ is imported by ‘scales’, ‘reshape2’, ‘readr’, ‘tibble’, ‘plyr’ so cannot be unloaded
Error in library("Rcpp") : 
  Package ‘Rcpp’ version 0.12.9 cannot be unloaded

 

I have installed two packages ; mzR & Rcpp

But, I couldn't get the library from those packages.

Please let me know the way to solve this issue.

Thanks,

Junseok

ADD COMMENTlink modified 13 months ago by Laurent Gatto1.0k • written 13 months ago by peter.jsbae0
0
gravatar for Laurent Gatto
13 months ago by
Laurent Gatto1.0k
United Kingdom
Laurent Gatto1.0k wrote:

Could you try the following in a new R session:

library("Rcpp")
library("mzR")
sesssionInfo()

and, if you encounter any errors, could you provide the full output of the session, including the output of sessionInfo().

ADD COMMENTlink written 13 months ago by Laurent Gatto1.0k

Thanks, Gatto. 

This is the output of those three commands.

> library("Rcpp")
Error in unloadNamespace(package) : 
  namespace ‘Rcpp’ is imported by ‘scales’, ‘reshape2’, ‘readr’, ‘tibble’, ‘plyr’ so cannot be unloaded
Error in library("Rcpp") : 
  Package ‘Rcpp’ version 0.12.9 cannot be unloaded
> library("mzR")
Loading required package: Rcpp
Error in unloadNamespace(package) : 
  namespace ‘Rcpp’ is imported by ‘scales’, ‘reshape2’, ‘readr’, ‘tibble’, ‘plyr’ so cannot be unloaded
Error in library(pkg, character.only = TRUE, logical.return = TRUE, lib.loc = lib.loc,  : 
  Package ‘Rcpp’ version 0.12.9 cannot be unloaded
> sesssionInfo()
Error: could not find function "sesssionInfo"

 

Thanks,

Junseok

ADD REPLYlink written 13 months ago by peter.jsbae0

[First name is Laurent]

Is this in a new session, i.e. you restarted R? If so, do you have an .Rprofile files that loads some packages automatically? To avoid anything like that, could you start R in a terminal with R --vanilla, then type the following:

ls()
sessionInfo()
library("Rccp")
library("mzR")
sessionInfo()

Note your type in sessionInfo!

ADD REPLYlink modified 12 months ago • written 13 months ago by Laurent Gatto1.0k
Please log in to add an answer.

Help
Access

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.
Powered by Biostar version 2.2.0
Traffic: 295 users visited in the last hour