[Roxygen-commits] r196 - pkg/inst/doc

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Wed Aug 27 03:12:50 CEST 2008


Author: pcd
Date: 2008-08-27 03:12:49 +0200 (Wed, 27 Aug 2008)
New Revision: 196

Added:
   pkg/inst/doc/roxygen.bib
Modified:
   pkg/inst/doc/Makefile
   pkg/inst/doc/roxygen.Rnw
Log:
bib; stylistic; collate


Modified: pkg/inst/doc/Makefile
===================================================================
--- pkg/inst/doc/Makefile	2008-08-26 18:27:28 UTC (rev 195)
+++ pkg/inst/doc/Makefile	2008-08-27 01:12:49 UTC (rev 196)
@@ -2,6 +2,8 @@
 
 roxygen.pdf: roxygen.tex
 	pdflatex roxygen && \
+	bibtex roxygen && \
+	pdflatex roxygen && \
 	pdflatex roxygen
 
 roxygen-manual.pdf:

Modified: pkg/inst/doc/roxygen.Rnw
===================================================================
--- pkg/inst/doc/roxygen.Rnw	2008-08-26 18:27:28 UTC (rev 195)
+++ pkg/inst/doc/roxygen.Rnw	2008-08-27 01:12:49 UTC (rev 196)
@@ -4,8 +4,8 @@
 \usepackage{url}
 \usepackage{graphicx}
 \usepackage{grffile}
-%% \usepackage{afterpage}
 \usepackage{float}
+\usepackage{natbib}
 %% \VignetteIndexEntry{Roxygen Vignette}
 \newcommand{\Roxygen}{\texttt{Roxygen}}
 %% path, filename, caption, label
@@ -43,9 +43,9 @@
         {hello-roxygen}
 
 \texttt{hello-roxygen.R} (fig. \ref{hello-roxygen}) is a minimal
-example to check the sanity of your local \Roxygen{} installation. It
-merely replaces the package description so that `\texttt{R CMD check}'
-will run after \Roxygen{} has processed the package skeleton:
+example to check the sanity of your \Roxygen{} installation. It merely
+replaces the package description so that `\texttt{R CMD check}' will
+run after \Roxygen{} has processed the package skeleton:
 
 <<keep.source=true>>=
 library(roxygen)
@@ -98,10 +98,10 @@
 23).
 
 Furthermore, although \Roxygen{} tags replace many of the structural
-Rd elements such as \verb=\title=, \verb=\keyword=, etc.; many of the
-stylistic Rd elements such as \verb=\emph= and \verb=\email= can be
-used freely within \Roxygen{} tags. See ``Writing R Extensions'' for
-details. [TODO: bibtex reference]
+Rd elements such as \verb=\title=, \verb=\keyword=, etc.; stylistic Rd
+elements such as \verb=\emph= and \verb=\email= can be used freely
+within \Roxygen{} tags. See ``Writing R Extensions'' for
+details. \citep[\S2.3 ``Marking text'']{r-core}
 
 \subsection{Fermat Test}
 
@@ -134,6 +134,11 @@
         {Roxygen example \texttt{pseudoprime.R}}
         {pseudoprime}
 
+Notice the header in \texttt{pseudoprime.R} (fig. \ref{pseudoprime})
+terminated by \texttt{roxygen()}; `\texttt{@include fermat.R}' signals
+that \texttt{fermat.R} should be loaded before \texttt{pseudoprime.R}.
+The collate roclet will update \texttt{DESCRIPTION} accordingly.
+
 TODO: talk about \texttt{@include} and \texttt{@export} in the context of
 \texttt{pseudoprime.R}.
 
@@ -149,4 +154,6 @@
 
 @
 
+\bibliographystyle{plainnat}
+\bibliography{roxygen}
 \end{document}

Added: pkg/inst/doc/roxygen.bib
===================================================================
--- pkg/inst/doc/roxygen.bib	                        (rev 0)
+++ pkg/inst/doc/roxygen.bib	2008-08-27 01:12:49 UTC (rev 196)
@@ -0,0 +1,13 @@
+ at Manual{r-core,
+  title =        {Writing R Extensions},
+  OPTkey =       {},
+  author =    {{R Development Core Team}},
+  organization = {R Foundation for Statistical Computing},
+  address =   {Vienna, Austria},
+  OPTedition =   {},
+  OPTmonth =     {},
+  year =      {2008},
+  OPTnote =      {},
+  OPTannote =    {}
+}
+



More information about the Roxygen-commits mailing list