[R] sub directories in the tests directory of a package

David Kane <David Kane a296180 at mica.fmr.com
Fri Nov 16 12:52:58 CET 2001

It seems like any directories (and their contents) beneath the /tests directory of an R package are
not copied over completely when R CMD check is run. This causes problems (for
me) when the tests for a function require some sort of directory structure. For
example, I have an R function that iteratively searches through a directory
tree for a specific file. Currently, I can not put the inputs for a test for
that function in the /tests directory. It would seem that better behavior would
be for R CMD check to simply (recursively) copy everything from the /tests
directory in the package into the /tests directory in the .Rcheck directory,
similar to the way that everything in /inst is copied over during INSTALL.

Any suggestions? I poked around in the R CMD check code, but my Perl is even
worse than my R. Or am I missing something?


Dave Kane 

> version
platform sparc-sun-solaris2.6
arch     sparc               
os       solaris2.6          
system   sparc, solaris2.6   
major    1                   
minor    3.1                 
year     2001                
month    08                  
day      31                  
language R                   
r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list