1616 urlcolor=link
1717}
1818
19+ \usepackage {microtype } % % cf http://www.khirevich.com/latex/microtype/
20+ \usepackage [T1 ]{fontenc } % % cf http://www.khirevich.com/latex/font/
21+ \usepackage [bitstream-charter ]{mathdesign } % % cf http://www.khirevich.com/latex/font/
22+
1923\newcommand {\proglang }[1]{\textsf {#1}}
2024\newcommand {\pkg }[1]{{\fontseries {b}\selectfont #1}}
2125
@@ -146,12 +150,12 @@ package, and it also includes the different components needed for using
146150
147151\subsection {\proglang {C++} code }
148152
149- If the \texttt {attributes } argument is set to
153+ If the \texttt {attributes } argument is set to
150154\texttt {TRUE }\footnote {Setting \texttt {attributes } to \texttt {TRUE } is the default. This document
151- does not cover the behavior of \texttt {Rcpp.package.skeleton } when \texttt {attributes } is set
152- to \texttt {FALSE } as we try to encourage package developpers to use
153- attributes. },
154- the following \proglang {C++} file is included in the \texttt {src/ } directory:
155+ does not cover the behavior of \texttt {Rcpp.package.skeleton } when \texttt {attributes } is set
156+ to \texttt {FALSE } as we try to encourage package developpers to use
157+ attributes. },
158+ the following \proglang {C++} file is included in the \texttt {src/ } directory:
155159
156160<<lang =cpp >>=
157161# include <Rcpp.h>
@@ -169,14 +173,14 @@ List rcpp_hello_world() {
169173@
170174
171175The file defines the simple \texttt {rcpp\_ hello\_ world } function that
172- uses a few \pkg {Rcpp} classes and returns a \texttt {List }.
176+ uses a few \pkg {Rcpp} classes and returns a \texttt {List }.
173177
174178This function is preceded by the \texttt {Rcpp::export } attribute to automatically
175- handle argument conversion because \proglang {R} has to be taught how to
176- e.g. handle the \texttt {List } class.
179+ handle argument conversion because \proglang {R} has to be taught how to
180+ e.g. handle the \texttt {List } class.
177181
178182\Sexpr{link(" Rcpp.package.skeleton" )} then invokes \Sexpr{link(" compileAttributes" )}
179- on the package, which generates the \texttt {RcppExports.cpp } file:
183+ on the package, which generates the \texttt {RcppExports.cpp } file:
180184
181185<<lang =cpp >>=
182186// This file was generated by Rcpp :: compileAttributes
@@ -203,16 +207,16 @@ END_RCPP
203207@
204208
205209This file defines a function with the appropriate calling convention, suitable for
206- \Sexpr{link(" .Call" )} . It needs to be regenerated each time functions
207- exposed by attributes are modified. This is the task of the
210+ \Sexpr{link(" .Call" )} . It needs to be regenerated each time functions
211+ exposed by attributes are modified. This is the task of the
208212\Sexpr{link(" compileAttributes" )} function. A discussion on attributes is
209- beyond the scope of this document and more information is available
210- in the attributes vignette \citep {CRAN:Rcpp:Attributes }.
213+ beyond the scope of this document and more information is available
214+ in the attributes vignette \citep {CRAN:Rcpp:Attributes }.
211215
212216\subsection {\proglang {R} code }
213217
214- The \Sexpr{link(" compileAttributes" )} also generates \proglang {R} code
215- that uses the \proglang {C++} function.
218+ The \Sexpr{link(" compileAttributes" )} also generates \proglang {R} code
219+ that uses the \proglang {C++} function.
216220
217221<<lang =cpp >>=
218222# This file was generated by Rcpp::compileAttributes
@@ -224,7 +228,7 @@ rcpp_hello_world <- function() {
224228@
225229
226230This is also a generated file so it should not be modified manually, rather
227- regenerated as needed by \Sexpr{link(" compileAttributes" )} .
231+ regenerated as needed by \Sexpr{link(" compileAttributes" )} .
228232
229233\subsection {\texttt {DESCRIPTION } }
230234
@@ -411,7 +415,7 @@ rcpp_hello_world()
411415
412416This document does not cover the use of the \texttt {module } argument
413417of \Sexpr{link(" Rcpp.package.skeleton" )} . It is covered
414- in the modules vignette \citep {CRAN:Rcpp:Modules }.
418+ in the modules vignette \citep {CRAN:Rcpp:Modules }.
415419
416420\section {Further examples }
417421
0 commit comments