> I thought that @example would take the R code in "tests/foo.R" (this file > also exists) and append it to the .Rd-file. However, there is no > \examples{...} section in my roxygen-processed .Rd-file after running > roxygenize(). It just seems as if @example is just neglected. Should I put > the file in another directory?
I would suspect that the path would be relative to either man/ or R/ - so you probably want ../tests/... But including your unit tests as examples seems like a pretty odd thing to do - they do serve rather different purposes. Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel