Skip to content
Prev 205718 / 398506 Next

Debugging issues encountered during the "R CMD check" process

Thanks a ton for the reply.  

If I understand your recommendation below you are saying to set "R_KEEP_PKG_SOURCE=yes" as an environment variable and then run "R CMD check signal" and hope that additional debug messages are printed. 

If that is the case, I believe I may have followed those instructions:

jason-ruperts-macbook-pro:r-signal jasonkrupert$ set R_KEEP_PKG_SOURCE=yes
jason-ruperts-macbook-pro:r-signal jasonkrupert$ R CMD check signal
* checking for working pdflatex ... OK
* using log directory '/Users/jasonkrupert/Documents/RStuff/Rsignal/r-signal/signal.Rcheck'
* using R version 2.9.2 (2009-08-24)
* using session charset: UTF-8
* checking for file 'signal/DESCRIPTION' ... OK
* checking extension type ... Package
* this is package 'signal' version '0.6'
....
....
....
Warning in rbind(x, array(val, dim = c(n - nx, NCOL(x)))) :
  number of columns of result is not a multiple of vector length (arg 1)
Warning in Fft(postpad(x, N)) * B :
  longer object length is not a multiple of shorter object length
Error in ifft(Fft(postpad(x, N)) * B) : 
  dims [product 36] do not match the length of object [256]
Calls: interp -> fftfilt -> fftfiltx -> ifft
Execution halted



To my novice eye, it appears that the error message are the same as before.   

I guess, in order to debug this problem more thoroughly, will I need to "source" all the files and then run this example, which is where the error appears to be occurring? 

I was not sure about the best protocol for addressing errors that occur during the "R CMD check" process, especially since they are not in the R Console and not possible to "browser()" into the issue...

Thanks again for any insights or feedback. 










----- Original Message ----
From: Duncan Murdoch <murdoch at stats.uwo.ca>
To: Jason Rupert <jasonkrupert at yahoo.com>
Cc: R-help at r-project.org
Sent: Thu, January 7, 2010 2:02:25 PM
Subject: Re: [R] Debugging issues encountered during the "R CMD check" process
On 07/01/2010 2:48 PM, Jason Rupert wrote:
You'll often get more informative error messages in recent R releases if you set the environment variable

R_KEEP_PKG_SOURCE=yes

I don't know if it will help in this case.

Duncan Murdoch