[R] Problem with "Peaks" package - followup…

Wildgruber, Christoph U. wildgrubercu at ornl.gov
Thu Aug 29 17:16:58 CEST 2013


Hi,

I apologize for not following the posting rules…

Here is the text from my previous post:

"I started evaluating the 'Peaks' package a couple of months ago and found it to be quite
useful. Getting back to it last week I had to set up my R environment due to hardware 
changes again. The Peaks package loads with no problem.
After successfully reinstalling all packages (RedHat  4.4.7-3 and OS X 10.8.4)
I am getting the following error message :

Error in .Call("R_SpectrumSearchHighRes", as.vector(y), as.numeric(sigma),  : 
 "R_SpectrumSearchHighRes" not available for .Call() for package "Peaks"

I was not able to identify a problem with my installation. The script calling
this function is the same, the actual call is the same as it was when I stopped 
working with this script.
Any suggestion for how to fix this issue will be greatly appreciated."

The following script (OS X 10.8.4) fails in a reproducible way:

###########################################################################################
## CUW 08/2013
## Demo: Peaksearch issue (package 'Peaks')
##
library(Peaks)

## Signal with well defined peaks
x <- seq( 0, 50, len=1024)
y <- 1/x * sin(x)

## Plot signal...
plot(x, y, type='s')

## Call SpectrumSearch with default parameters
res <- SpectrumSearch(y, sigma=3.0, threshold=1.0, background=FALSE, iterations=13, markov=FALSE, window=3)
##########################################################################################

Error message:

Error in .Call("R_SpectrumSearchHighRes", as.vector(y), as.numeric(sigma),  : 
  "R_SpectrumSearchHighRes" not available for .Call() for package "Peaks"


Any suggestion for fixing this issue is very much appreciated!

Thanks,

Uli


More information about the R-help mailing list