[Rinside-commits] r140 - pkg/inst/examples/standard
noreply at r-forge.r-project.org
noreply at r-forge.r-project.org
Thu Mar 25 16:11:56 CET 2010
Author: edd
Date: 2010-03-25 16:11:55 +0100 (Thu, 25 Mar 2010)
New Revision: 140
Modified:
pkg/inst/examples/standard/rinside_sample8.cpp
Log:
another small simplification
Modified: pkg/inst/examples/standard/rinside_sample8.cpp
===================================================================
--- pkg/inst/examples/standard/rinside_sample8.cpp 2010-03-23 02:20:10 UTC (rev 139)
+++ pkg/inst/examples/standard/rinside_sample8.cpp 2010-03-25 15:11:55 UTC (rev 140)
@@ -14,7 +14,7 @@
R["y"] = 20 ;
R.parseEvalQ("z <- x + y") ; // R statement evaluation and result
- int sum = Rcpp::as<int>( R["z"] ); // retrieval via access using [] and as() wrapper
+ int sum = R["z"]; // retrieval via access using [] and implicit wrapper
std::cout << "10 + 20 = " << sum << std::endl ;
// we can also return the value directly
More information about the Rinside-commits
mailing list