Hola! I have the following in a .Rd file: \eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) } {coef = c(coef[1], coef[2], \dots, coef[n])} However, both arguments come out in the latex file! Whats happening? Kjetil Halvorsen
I am running Rcmd check (Windows XP, rw1080 from cran) on a new package. This reports "undocumented code objects" for 14 functions, which all have their .Rd files! What might be happening? Kjetil Halvorsen
kjetil at entelnet.bo wrote:> > I am running > Rcmd check (Windows XP, rw1080 from cran) > on a new package. > > This reports "undocumented code objects" for 14 functions, > which all have their .Rd files! > > What might be happening?1) You forgot to set an \alias{} (most probable) 2) There is another error in the Rd files 3) There is a bug in R (less probable) At first check points 1-2) from above, after that repeat the complete output of Rcmd check and provide a minimal version of one of your Rd files which does not work. Uwe Ligges> Kjetil Halvorsen > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help
Do the functions all have proper \alias entries? -roger kjetil at entelnet.bo wrote:> I am running > Rcmd check (Windows XP, rw1080 from cran) > on a new package. > > This reports "undocumented code objects" for 14 functions, > which all have their .Rd files! > > What might be happening? > > Kjetil Halvorsen > > ______________________________________________ > R-help at stat.math.ethz.ch mailing list > https://www.stat.math.ethz.ch/mailman/listinfo/r-help >
>>>>> "kjetil" == kjetil halvorsen <kjetil at entelnet.bo> >>>>> on Sun, 12 Oct 2003 09:55:00 -0400 writes:kjetil> Hola! I have the following in a .Rd file: kjetil> \eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) } kjetil> {coef = c(coef[1], coef[2], \dots, coef[n])} kjetil> However, both arguments come out in the latex file! kjetil> Whats happening? \eqn comes in a 1-argument and 2-argument version. If you want the 2-argument version, you cannot put spaces between the ending "}" of the 1st arg and the starting "{" of the 2nd one. Instead of the above, use \eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }{% coef = c(coef[1], coef[2], \dots, coef[n])} (note the comment "%" after the opening "{" ) Martin
On 13 Oct 2003 at 8:45, Martin Maechler wrote:> >>>>> "kjetil" == kjetil halvorsen <kjetil at entelnet.bo> > >>>>> on Sun, 12 Oct 2003 09:55:00 -0400 writes: > > kjetil> Hola! I have the following in a .Rd file: > > kjetil> \eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) } > kjetil> {coef = c(coef[1], coef[2], \dots, coef[n])} > > kjetil> However, both arguments come out in the latex file! > > kjetil> Whats happening? > > \eqn comes in a 1-argument and 2-argument version. > If you want the 2-argument version, you cannot put spaces > between the ending "}" of the 1st arg and the starting "{" of > the 2nd one. > > Instead of the above, > use > \eqn{\mbox{coef} = c(\mbox{coef}[1],\ldots, \mbox{coef}[n]) }{% > coef = c(coef[1], coef[2], \dots, coef[n])} > > (note the comment "%" after the opening "{" )Thanks!, but I did'nt get this to work with the % trick, I had to put everything on one line as Brian Ripley said. By the way , \deqn{} {} works fine. Kjetil Halvorsen> Martin
On 12 Oct 2003 at 21:45, Uwe Ligges wrote:> kjetil at entelnet.bo wrote: > > > > I am running > > Rcmd check (Windows XP, rw1080 from cran) > > on a new package. > > > > This reports "undocumented code objects" for 14 functions, > > which all have their .Rd files! > > > > What might be happening? > > 1) You forgot to set an \alias{} (most probable) > 2) There is another error in the Rd files > 3) There is a bug in R (less probable) >It is 3). It was caused by one unmatched brace, but the Rcmd check did not comply about unmatched braces. The first few lines of the file had the structure \name{aname} \alias{anothername} } % this is the unmatced brace . . . Kjetil Halvorsen> At first check points 1-2) from above, after that repeat the complete > output of Rcmd check and provide a minimal version of one of your Rd > files which does not work. > > Uwe Ligges > > > > Kjetil Halvorsen > > > > ______________________________________________ > > R-help at stat.math.ethz.ch mailing list > > https://www.stat.math.ethz.ch/mailman/listinfo/r-help