[Rcpp-commits] r2274 - pkg/Rcpp/inst/doc/Rcpp-sugar

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Oct 6 21:29:01 CEST 2010


Author: edd
Date: 2010-10-06 21:29:00 +0200 (Wed, 06 Oct 2010)
New Revision: 2274

Modified:
   pkg/Rcpp/inst/doc/Rcpp-sugar/Rcpp-sugar.Rnw
Log:
two fixes: escape underscore and define \code{}


Modified: pkg/Rcpp/inst/doc/Rcpp-sugar/Rcpp-sugar.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-sugar/Rcpp-sugar.Rnw	2010-10-06 16:17:28 UTC (rev 2273)
+++ pkg/Rcpp/inst/doc/Rcpp-sugar/Rcpp-sugar.Rnw	2010-10-06 19:29:00 UTC (rev 2274)
@@ -19,6 +19,7 @@
 \newcommand{\pkg}[1]{{\fontseries{b}\selectfont #1}}
 \newcommand{\sugar}{\textsl{Rcpp sugar}}
 \newcommand{\ith}{\textsl{i}-\textsuperscript{th}}
+\newcommand{\code}[1]{\texttt{#1}}
 
 <<echo=FALSE,print=FALSE>>=
 prettyVersion <- packageDescription("Rcpp")$Version
@@ -468,7 +469,7 @@
 
 Similar d/q/p/r functions are provided for the most common distributions:
 beta, binom, cauchy, chisq, exp, f, gamma, geom, hyper, lnorm, logis, nbeta,
-nbinom, nbinom_mu, nchisq, nf, norm, nt, pois, t, unif, and weibull.
+nbinom, nbinom\_mu, nchisq, nf, norm, nt, pois, t, unif, and weibull.
 
 One point to note is that the programmer using these functions needs to
 initialize the state of the random number generator as detailed in Section



More information about the Rcpp-commits mailing list