Skip to content

Commit 8a0d504

Browse files
committed
Merge remote-tracking branch 'RcppCore/master' into doc_updates
2 parents 406befa + fd509c6 commit 8a0d504

File tree

2 files changed

+12
-5
lines changed

2 files changed

+12
-5
lines changed

inst/NEWS.Rd

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,13 @@
3939
\item Code generation now deals correctly which packages containing a dot
4040
in their name (Qiang in \ghpr{501} fixing \ghit{500}).
4141
}
42+
\item Changes in Rcpp Documentation:
43+
\itemize{
44+
\item A section on default parameters was added to the Rcpp FAQ vignette
45+
(James Balamuta in \ghpr{505} fixing \ghit{418}).
46+
\item The Rcpp-attributes vignette is now mentioned more prominently in
47+
question one of the Rcpp FAQ vignette.
48+
}
4249
}
4350
}
4451

vignettes/Rcpp-FAQ.Rnw

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1196,8 +1196,8 @@ This is what is currently supported:
11961196
\item Pre-defined constants including:
11971197
\begin{itemize}
11981198
\item Booleans: \code{true} and \code{false}
1199-
\item Null Values: \code{R_NilValue}, \code{NA_STRING},
1200-
\code{NA_INTEGER}, \code{NA_REAL}, and \code{NA_LOGICAL}.
1199+
\item Null Values: \code{R\_NilValue}, \code{NA\_STRING},
1200+
\code{NA\_INTEGER}, \code{NA\_REAL}, and \code{NA\_LOGICAL}.
12011201
\end{itemize}
12021202
\item Selected vector types can be instantiated using the empty form of the
12031203
\code{::create} static member function.
@@ -1222,9 +1222,9 @@ how to:
12221222
void sample_defaults(NumericVector x = NumericVector::create(), // Size 0 vector
12231223
bool bias = true, // Set to true
12241224
std::string method = "rcpp rules!"){ // Default string
1225-
Rcpp::Rcout << "x size: " << x.size() << ", ";
1226-
Rcpp::Rcout << "bias value: " << bias << ", ";
1227-
Rcpp::Rcout << "method value: " << method << std::endl;
1225+
Rcpp::Rcout << "x size: " << x.size() << ", ";
1226+
Rcpp::Rcout << "bias value: " << bias << ", ";
1227+
Rcpp::Rcout << "method value: " << method << std::endl;
12281228
}
12291229
12301230
/*** R

0 commit comments

Comments
 (0)