I'm making my first package rlandscape
, using Roxygen2 and trying to follow the plain Roxygen vignette since Roxygen2 doesn't have one.
As in the vignette (page 3), I created a file called rlandscape-package.R
that contains nothing but package documentation. In the vignette, they say
each Roxygen description block must be followed by a statement, even header material that describes a le or package in lieu of a specific function. roxygen() is provided as a NOOP (null statement) to stand in for such cases.
but if I follow the description block with roxygen()
a call to package.skeleton
produces Error in eval(expr, envir, enclos) : could not find function "roxygen"
. So I've tried leaving the roxygen()
call out entirely as well as replacing it with NA
, both of which seem to produce the same results: package.skeleton()
works successfully (including rlandscape-package.R
as one of the code_files
arguments), and I can then roxygenize
> roxygenize("rlandscape", roxygen.dir = "rlandscape")
Updating collate directive in /Users/Gregor/Dropbox/rlandscape/rlandscape/DESCRIPTION
Updating namespace directives
Writing plot.landscape.Rd
Writing rland.Rd
Writing rland.gui.Rd
Writing makePoints.Rd
Writing rCluster.Rd
Writing rlandscape-package.Rd
Writing rlandscape.Rd
which seems to run successfully, but the DESCRIPTION file has the "Collate" field appended, but is otherwise unchanged from what package.skeleton
created. Why isn't the rest of the description file updated?
NULL
(where you would've put a call toroxygen()
if using the older roxygen package). – Josh O'Brien