Skip to content
Prev 66747 / 398525 Next

error messages on R CMD check

Dear Johannes

I have noticed the same complaint, and you are right that it can be 
unconnected with faulty S3 methods, etc., in your package.

For example, in my "relimp" package (current version 0.9-1, new on CRAN 
today) the DESCRIPTION file has
   Suggests: tcltk
and that works fine (ie it passes R CMD check).

But if I change that to
   Depends: tcltk
I get the same kind of errors that you got:

david% R CMD check relimp
[...]
* checking S3 generic/method consistency ... WARNING
Error in .try_quietly({ : Error: package 'tcltk' could not be loaded
Execution halted
See section 'Generic functions and methods' of the 'Writing R 
Extensions'
manual.
* checking replacement functions ... WARNING
Error in .try_quietly({ : Error: package 'tcltk' could not be loaded
Execution halted
In R, the argument of a replacement function which corresponds to the 
right
hand side must be named 'value'.
* checking foreign function calls ... WARNING
Error in .try_quietly({ : Error: package 'tcltk' could not be loaded
Execution halted
See section 'System and foreign language interfaces' of the 'Writing R
Extensions' manual.
* checking Rd files ... OK
* checking for missing documentation entries ... ERROR
Error in .try_quietly({ : Error: package 'tcltk' could not be loaded

In this case it is because the calling environment for R CMD check did 
not have the DISPLAY variable set, so tcltk could not be loaded.  If 
instead I do

david% setenv DISPLAY :0
david% R CMD check relimp

then all checks are passed.  This is with

david% R --version
R 2.0.1 (2004-11-15).

This is not really an explanation of what you got, just a confirmation 
that something here probably needs fixing (even if it's only the error 
message).  Perhaps one of us should file a bug report (having checked 
first that a fix is not already made in the latest development 
version)?

David
On 30 Mar, 2005, at 13:34, Johannes H?sing wrote: