David Firth wrote:
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, I disagree: In your case the error message clearly says that "'tcltk' could not be loaded", but you say your package depends on 'tcltk'. In Johannes' case, the problem is different, because the error message is not that clear. Johannes, can you install and load the package? Is the DESCRIPTION file correct? If so, you might want to send the package in a private message... Uwe Ligges
David On 30 Mar, 2005, at 13:34, Johannes H?sing wrote:
Dear all,
I am trying to wrap up a package. On entering
R CMD check, I get the following error messages:
[...]
* checking S3 generic/method consistency ... WARNING
Error in .try_quietly({ : Error in library(package, lib.loc = lib.loc,
character.only = TRUE, verbose = FALSE) :
package/namespace load failed for 'resper'
Execution halted
See section 'Generic functions and methods' of the 'Writing R Extensions'
manual.
* checking replacement functions ... WARNING
Error in .try_quietly({ : Error in library(package, lib.loc = lib.loc,
character.only = TRUE, verbose = FALSE) :
package/namespace load failed for 'resper'
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 in library(package, lib.loc = lib.loc,
character.only = TRUE, verbose = FALSE) :
package/namespace load failed for 'resper'
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 in library(package, lib.loc = lib.loc,
character.only = TRUE, verbose = FALSE) :
I am not getting these messages, nor their relation to
section 'Generic functions and methods' of the 'Writing
R Extensions' manual, as I did not write any generic methods
in my package.
There has been some discussion of the error message around
Christmas 2003:
http://maths.newcastle.edu.au/~rking/R/devel/03b/1438.html,
but I can't see how the circumstances described there apply to
my situation ("export a class name").
Could somebody give me a clue on how to give my search a
direction?
Greetings
Johannes
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
______________________________________________ R-help at stat.math.ethz.ch mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html