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

arun smartpink111 at yahoo.com
Fri Aug 30 05:07:40 CEST 2013



Hi,
I am getting the same error with R 3.0.1
SpectrumSearch(y, sigma=3.0, threshold=1.0, background=TRUE, iterations=13, markov=FALSE, window=3)
#Error in .Call("R_SpectrumSearchHighRes", as.vector(y), as.numeric(sigma),  : 
 # "R_SpectrumSearchHighRes" not available for .Call() for package "Peaks"


But, it worked with R 2.15.2 



It would be better to contact  the package maintainer
maintainer("Peaks")
#[1] "M.Kondrin <mkondrin at hppi.troitsk.ru>"



 sessionInfo()
R version 3.0.1 (2013-05-16)
Platform: x86_64-unknown-linux-gnu (64-bit)

locale:
 [1] LC_CTYPE=en_CA.UTF-8       LC_NUMERIC=C              
 [3] LC_TIME=en_CA.UTF-8        LC_COLLATE=en_CA.UTF-8    
 [5] LC_MONETARY=en_CA.UTF-8    LC_MESSAGES=en_CA.UTF-8   
 [7] LC_PAPER=C                 LC_NAME=C                 
 [9] LC_ADDRESS=C               LC_TELEPHONE=C            
[11] LC_MEASUREMENT=en_CA.UTF-8 LC_IDENTIFICATION=C       

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] Peaks_0.2      stringr_0.6.2  reshape2_1.2.2

loaded via a namespace (and not attached):
[1] plyr_1.8    tcltk_3.0.1 tools_3.0.1


A.K.




----- Original Message -----
From: "Wildgruber, Christoph U." <wildgrubercu at ornl.gov>
To: "R-help at r-project.org" <R-help at r-project.org>
Cc: "Wildgruber, Christoph U." <wildgrubercu at ornl.gov>
Sent: Thursday, August 29, 2013 11:16 AM
Subject: [R] Problem with "Peaks" package - followup…

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
______________________________________________
R-help at r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.




More information about the R-help mailing list