Skip to main content
Topic: CentWave error (Read 20355 times) previous topic - next topic

Re: CentWave error

Reply #30
That did it,
Thanks Ralf

not quite.  I actually must have been installing the latest stable version.  I am still getting the same error when I install the devel verion:

Loading required package: mzR
Loading required package: Rcpp
Error in eval(expr, envir, enclos) :
  could not find function ".getNamespace"
In addition: Warning message:
package ‘xcms’ was built under R version 2.16.0
Error : unable to load R code in package ‘xcms’
Error: package/namespace load failed for ‘xcms’

I am on 64 bit windows, FWIW.

Re: CentWave error

Reply #31
Hi,

can you load the individual dependencies,
esp. library(mzR) ?

Yours,
Steffen
--
IPB Halle                          Mass spectrometry & Bioinformatics
Dr. Steffen Neumann         http://www.IPB-Halle.DE
Weinberg 3 06120 Halle     Tel. +49 (0) 345 5582 - 1470
sneumann(at)IPB-Halle.DE

Re: CentWave error

Reply #32
> library(Rcpp)
> library(mzR)
> library(xcms)
Error in eval(expr, envir, enclos) :
  could not find function ".getNamespace"
In addition: Warning message:
package ‘xcms’ was built under R version 2.16.0
Error : unable to load R code in package ‘xcms’
Error: package/namespace load failed for ‘xcms’
>

Same issue.  This is a new R session.  Doesn't sound like Jan had this problem, so it is either user error or platform dependent.

Re: CentWave error

Reply #33
any chance I need R 2.16.0?  I am running the latest stable version 2.15.1.

Re: CentWave error

Reply #34
Found this online:

"Beginning on October 2, 2012, with the release of Bioconductor 2.11, the way to use the development (devel) version of Bioconductor (2.12) is to install R-devel (R-2.16). Packages can then be installed normally; for example, this will install the devel version of IRanges and its dependencies:"

So I went and downloaded devel R, which is necessary for devel Bioconducor, and apparently one or the other is necessary for devel xcms, becuase now I seem to have the right version installed:

trying URL 'http://bioconductor.org/packages/2.12/bioc/bin/windows/contrib/2.16/xcms_1.35.1.zip'
Content type 'application/zip' length 1871951 bytes (1.8 Mb)
opened URL
downloaded 1.8 Mb

package ‘xcms’ successfully unpacked and MD5 sums checked

> library(xcms)
Loading required package: mzR
Loading required package: Rcpp
>

Re: CentWave error

Reply #35
and the new 'conversion' tool is working great.  Everything has to be devel versions! Thanks again,
Corey

Re: CentWave error

Reply #36
Hi,

glad you have it solved, sometimes the version and devel stuff
can be frustrating. Hope it helps someone else when googl'ing
their problem.

Yours,
Steffen
--
IPB Halle                          Mass spectrometry & Bioinformatics
Dr. Steffen Neumann         http://www.IPB-Halle.DE
Weinberg 3 06120 Halle     Tel. +49 (0) 345 5582 - 1470
sneumann(at)IPB-Halle.DE

Re: CentWave error

Reply #37
I had two files that generate this error with new write.mxXML function. 
The two files are two functions (MS and MSe) derived from the same waters raw file, that was converted to two independent cdf files:

Error in if (is.unsorted(peaks[, "mz"])) { :
  missing value where TRUE/FALSE needed

Re: CentWave error

Reply #38
That means that some scans are either empty or contain only NA's for some reason ?
Can you send me one of those files ?