[Rcpp-commits] r1631 - pkg/Rcpp/inst/doc/Rcpp-extending

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Sat Jun 19 18:09:52 CEST 2010


Author: edd
Date: 2010-06-19 18:09:52 +0200 (Sat, 19 Jun 2010)
New Revision: 1631

Modified:
   pkg/Rcpp/inst/doc/Rcpp-extending/Rcpp-extending.Rnw
Log:
responding to the 'Bates critique' with thanks to Doug for catching a thinko


Modified: pkg/Rcpp/inst/doc/Rcpp-extending/Rcpp-extending.Rnw
===================================================================
--- pkg/Rcpp/inst/doc/Rcpp-extending/Rcpp-extending.Rnw	2010-06-19 15:38:30 UTC (rev 1630)
+++ pkg/Rcpp/inst/doc/Rcpp-extending/Rcpp-extending.Rnw	2010-06-19 16:09:52 UTC (rev 1631)
@@ -92,8 +92,11 @@
 
 \pkg{Rcpp} facilitates data interchange between \proglang{R} and
 \proglang{C++} through the templated functions \texttt{Rcpp::as} (for
-conversion from \proglang{C++}) and \texttt{Rcpp::wrap} (for conversion to
-\proglang{C++}).  Their declarations are as follows:
+conversion of objects from \proglang{R} to \proglang{C++}) and
+\texttt{Rcpp::wrap} (for conversion from \proglang{C++} to \proglang{R}).  In
+other words, we convert between the so-called \proglang{S}-expression
+pointers (in type \texttt{SEXP}) to a templated \proglang{C++} type, and vice
+versa.  The corresponding function declarations are as follows:
 
 <<lang=cpp>>=
 // conversion from R to C++



More information about the Rcpp-commits mailing list