[R] Documenting R package with Rd file

Steven Yen styen at ntu.edu.tw
Wed Mar 14 11:10:12 CET 2018


I have trouble documenting an R package. In my .Rd file (sixth line below), I have
uhat<-m%*%y

but when the package is built (successfully), the matrix multiplication part does not show up in the documentation. The line become (missing %*% y)

uhat<-m

===

\examples{
x<-c(1,2,3,4,5)
y<-c(1,1,2,2,4)
x<-cbind(1,x)
m<-mmat(x)
uhat<-m%*%y
dstat(uhat)
}

  --
styen at ntu.edu.tw (S.T. Yen)


	[[alternative HTML version deleted]]



More information about the R-help mailing list