[R] Documenting R package with Rd file
murdoch.duncan at gmail.com
Wed Mar 14 12:03:00 CET 2018
On 14/03/2018 6:10 AM, Steven Yen wrote:
> I have trouble documenting an R package. In my .Rd file (sixth line below), I have
> but when the package is built (successfully), the matrix multiplication part does not show up in the documentation. The line become (missing %*% y)
Generally questions about writing packages should be in R-devel or
R-package-devel, but this one is easy, so I'll answer here.
The % symbol marks a comment in an Rd file. You need to escape them.
Should be "uhat <- m \%*\% y"
> styen at ntu.edu.tw (S.T. Yen)
> [[alternative HTML version deleted]]
> R-help at r-project.org mailing list -- To UNSUBSCRIBE and more, see
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
More information about the R-help