Skip to content
Prev 6329 / 10988 Next

[Rcpp-devel] sourceCpp and #include .hpp ?

Hi Tal,

If you run sourceCpp(..., verbose=TRUE), you'll see that the source code is
copied into a temporary directory, and then the working directory is reset
to that directory. So the header file is no longer discovered there. (not
to mention, you would have to tell sourceCpp where to find those function
definitions that have been included as well... building a package does that
behind the scenes for you)

I think you should stay with recompiling the package, rather than switching
to sourceCpp, when debugging a package.

-Kevin
On Mon, Aug 19, 2013 at 11:37 AM, Tal Galili <tal.galili at gmail.com> wrote:

            
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.r-forge.r-project.org/pipermail/rcpp-devel/attachments/20130819/77e23e80/attachment.html>