[Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

Søren Højsgaard sorenh at math.aau.dk
Thu Jan 2 09:55:12 CET 2014


Good point; hadn't noticed that. Thanks!
Søren

-----Original Message-----
From: Hadley Wickham [mailto:h.wickham at gmail.com] 
Sent: 31. december 2013 16:25
To: Søren Højsgaard
Cc: Dirk Eddelbuettel; Romain Francois (romain at r-enthusiasts.com); rcpp-devel at r-forge.wu-wien.ac.at
Subject: Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

> I am reluctant to follow Romains suggestion because the package has a lot of c-code in it, so using load_all() takes quite some time because all c and c++ code is being compiled. (Maybe that is just slow on windows? I tried on linux (ubuntu) too but I can't get devtools installed (because RCurl for some reason can't be installed)).

As well as Dirk's comment, note that load_all() only needs to re-compile changed files, so it should only be the first compile that is slow (unless you're changing header files).

Hadley

--
http://had.co.nz/


More information about the Rcpp-devel mailing list