[Rcpp-commits] r570 - papers/rjournal

noreply at r-forge.r-project.org noreply at r-forge.r-project.org
Thu Feb 4 18:04:18 CET 2010


Author: romain
Date: 2010-02-04 18:04:18 +0100 (Thu, 04 Feb 2010)
New Revision: 570

Modified:
   papers/rjournal/EddelbuettelFrancois.tex
Log:
minor formatting

Modified: papers/rjournal/EddelbuettelFrancois.tex
===================================================================
--- papers/rjournal/EddelbuettelFrancois.tex	2010-02-04 17:03:40 UTC (rev 569)
+++ papers/rjournal/EddelbuettelFrancois.tex	2010-02-04 17:04:18 UTC (rev 570)
@@ -497,9 +497,11 @@
 \begin{example}
 # assuming the global environment contains 
 # a variable 'x' that is a numeric vector
-Rcpp::Environment global = Rcpp::Environment::global_env()
+Rcpp::Environment global = 
+	Rcpp::Environment::global_env()
 
-# extract a std::vector<double> from the global environment
+# extract a std::vector<double> from 
+# the global environment
 std::vector<double> vx = global["x"] ;
 
 # create a map<string,string>
@@ -507,7 +509,7 @@
 map["foo"] = "oof" ;
 map["bar"] = "rab" ;
 
-# push the STL map to the global environment
+# push the STL map to R
 global["y"] = map ;
 \end{example}
 



More information about the Rcpp-commits mailing list