[rkward-devel] R CMD check fails on packages requiring rkward

meik michalke meik.michalke at uni-duesseldorf.de
Sat Mar 10 19:54:15 UTC 2012


hi,

i think i'm running into a rather delicate problem here... i'm working on the 
rkwarddev package, specifically, trying to clean the package from warnings of 
"R CMD check". since the package requires the rkward package, q()/quit() from 
base is masked, hence the examples check fails because it cannot end:

<R CMD check>
[...]

> library('rkwarddev')
Loading required package: XiMpLe
Loading required package: rkward

Attaching package: ‘rkward’

The following object(s) are masked from ‘package:grDevices’:

    X11, x11

The following object(s) are masked from ‘package:base’:

    Sys.setlocale, makeActiveBinding, q, quit, require, setwd

[... running the examples ...]

> ### * <FOOTER>
> ###
> cat("Time elapsed: ", proc.time() - get("ptime", pos = 'CheckExEnv'),"\n")
Time elapsed:  0.892 0.02 0.911 0 0 
> grDevices::dev.off()
null device 
          1 
> ###
> ### Local variables: ***
> ### mode: outline-minor ***
> ### outline-regexp: "\\(> \\)?### [*]+" ***
> ### End: ***
> quit('no')
Error in .Call("rk.do.generic.request", c(x, args), isTRUE(synchronous)) : 
  C symbol name "rk.do.generic.request" not in load table
Calls: quit -> q -> .rk.do.plain.call -> .Call
Execution halted
</R CMD check>

you can experience the same in an ordinary R session (outside of RKWard):

 [start R]
 library(rkward)
 q("no")

you will get the above error and can't quit the session. do regain that 
control, run

 detach("package:rkward")
 q("no")

is this solvable at all? spontanously, the only way i can think of would be 
some sort of marker like an object value in the package namespace, to indicate 
whether the package was loaded by a starting RKWard session or not. it could 
then be checked by RKWard's q()/quit() functions.


viele grüße :: m.eik

-- 
dipl. psych. meik michalke
institut f"ur experimentelle psychologie
abt. f"ur diagnostik und differentielle psychologie
heinrich-heine-universit"at d-40204 d"usseldorf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/rkward-devel/attachments/20120310/b838bcdb/attachment.sig>


More information about the Rkward-devel mailing list