Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upWrite roxygen article for package #193
Comments
|
oh wow good call. So this is how to write the thing that comes up when you do like I like this |
We don't currently have a package-level roxygen documentation article.
Conventionally, the way this would be done is by documenting a NULL object inThen users would be able to land there withpkgnet.Rwith the namepkgnetand setting@docType package.?pkgnet.UPDATE: It looks like the standard way to do this nowadays is to document a string object with the value
"_PACKAGE". This is a special keyword for roxygen2 to know you're making a package documentation article, to create the right names, and to fill in some of the details (e.g., list of authors).So the two things of note to do are:
"_PACKAGE"@keywords internalso that you don't have apkgnetandpkgnet-packagearticle show up in the index, but they are still accessible if you?pkgnetor?pkgnet-package.References:
Hadley's R packages book