[Rd] R CMD check WARNING \usage question

From: Jeff Hamann <jeff.hamann_at_forestinformatics.com>
Date: Fri, 06 Jan 2012 11:11:46 -0800

I'm trying to update a package and would like to crush a WARNING message for a clean build.

I've been struggling with this question and haven't gotten any traction on the web either.

I've got a document file (Rd) that contains the following \usage statement:


\title{CONIFERS forest growth model sample data}

\description{ A list object of type \code{sample.data} stores all of
the basic information about a \code{\link{data.frame}} object representing a sample of plants.}


x <- list( plots=data.frame(), plants=data.frame(), age=0, x0=0.0, n.years.projected=0 ) class(x) <- "sample.data"

When I run R CMD check [pkg], I get the following WARNING:

Functions with \usage entries need to have the appropriate \alias entries, and all their arguments documented. The \usage entries must correspond to syntactically valid R code. See the chapter 'Writing R documentation files' in manual 'Writing R Extensions'.
* checking Rd contents ... OK

I'm not sure if there's a problem with the \alias section or the \usage section or both sections (I'm assuming this is the case).

I've read the Chapter 2 of R-ext.pdf plenty and just can't seem to see where I'm blowing it.


Jeff Hamann, PhD
PO Box 1421
Corvallis, Oregon 97339-1421
jeff.hamann[at]forestinformatics[dot]com jeff.d.hamann[at]gmail[dot]com

To ensure that your email is processed, include a subject entry in your email.

        [[alternative HTML version deleted]]

R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Fri 06 Jan 2012 - 19:15:22 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 06 Jan 2012 - 20:10:07 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive