Message-ID: <21546.51299.139866.356844@max.nulle.part>
Date: 2014-09-30T15:12:35Z
From: Dirk Eddelbuettel
Subject: [Rcpp-devel] Package Rcpp: Question conerning source code of cpp files and related question
In-Reply-To: <CABMO4ovM-uxYZPJQT=hGx2kTVhckPB9A65eePLh5N5zn8T7qGA@mail.gmail.com>
On 30 September 2014 at 10:55, Jonathan Olmsted wrote:
| ?Hi, Martin.
| ?
|
| 1) Is there a way to see the source file of the "final" cpp-file? (I mean
| is it possible to see how the //-lines are replaced and what soureCpp
| does?)
|
|
| ?The code generation that happens behind the scenes can be made explicit with?
|
| sourceCpp(file = "crossp.cpp", verbose = TRUE)
+1
Also, please read the "Rcpp Attributes" vignette to get a feel for the
transition to packages -- which are _the_ default unit of code dissemination
and deployment for R. _Everything_ evolves around it with R, and if you want
to use a different environment (like Netbeans) make sure you allow it launch
the proper _R-centric_ commands (eg R CMD COMPILE ...) rather than a naked g++.
We write C++ code here, but we do it in the context of R. Context matters.
Tschoe mit oe, Dirk
--
http://dirk.eddelbuettel.com | @eddelbuettel | edd at debian.org