Skip to content
Prev 54553 / 398498 Next

R CMD check testing environment

Ross Boylan wrote:
Yes. You don't need library() in the the help pages' exmaples, but you 
need it in tests.
Indeed, the manuals tells us that saved images have to be called either
*.RData (note the capitalization) or *.rda.
Works for me as "Mytests.R" in "Mypackage":

  library(Mypackage)
  data(MydataInMypackage)
  print(MydataInMypackage)
Right, see above.
You won't need library() in the examples ...
Running R CMD check once, looking whether the Rout looks fine (this 
should be the step that takes most of the time, and R can't do it for 
you), rename the file it, finished.


Uwe Ligges