Tristan, I ran into that problem when I wasn't exporting the function (i.e. it was an internal function). If you use the package devtools to make your package than you add a roxygen comment to the effect of #' @export and it will pass the example checks. Not sure what the equivalent is with building it that way, but perhaps that helps.
Cheers, Eliot On Thu, Aug 8, 2013 at 12:20 PM, Tristan Stayton <tstay...@bucknell.edu>wrote: > Hello friends, > > Thanks to everyone who sent me suggestions a while ago on help developing R > packages. I've been progressing well since then, but lately I've hit a > snag. My examples will not run during a package check (R CMD check) > because R can't find the functions that the examples are for (that is, when > it tries to run the example from the .Rd file for the function "convnum", > it can't find the function "convnum"). The .R files for the relevant > functions are all where they're supposed to be (in the R folder in the > folder for the package). I've tried various options for the NAMESPACE > file, thinking that this is probably where the problem is, to no avail, but > I'm shaky on this particular part of the package. > > Has anyone encountered this problem before? If anyone has any ideas or > advice, I'd be most grateful. > > Thanks, > > Tristan > > -- > C. Tristan Stayton > Associate Professor of Biology > Bucknell University > Lewisburg, PA 17837 > > Office: 570-577-3272 > > [[alternative HTML version deleted]] > > _______________________________________________ > R-sig-phylo mailing list - R-sig-phylo@r-project.org > https://stat.ethz.ch/mailman/listinfo/r-sig-phylo > Searchable archive at > http://www.mail-archive.com/r-sig-phylo@r-project.org/ > > [[alternative HTML version deleted]] _______________________________________________ R-sig-phylo mailing list - R-sig-phylo@r-project.org https://stat.ethz.ch/mailman/listinfo/r-sig-phylo Searchable archive at http://www.mail-archive.com/r-sig-phylo@r-project.org/