Thanks for the hints and help. This is good news, since the work with Rcpp
modules is very easy. Yet, meanwhile I managed to make it work using
RcppExports (with the wrapper from the skeleton example). Works charmingly.
Sören
> On 04.05.2015, at 15:35, Dirk Eddelbuettel wrote:
>
>
> On 3 May
On 3 May 2015 at 20:04, Dirk Eddelbuettel wrote:
| Not to sound too flippant but if code and doc are amiss, you could fix either
| the doc side, or the code side:
|
| i) don't document in Rd
|
| ii) export myfun() by adding // [[Rcpp::export]]above it
|
| There is simply no formal co
On 3 May 2015 at 16:41, Sören Vogel wrote:
| Hello
|
| I have created a function that I want to expose to R in my package using Rcpp
modules:
|
| #include
| using namespace Rcpp;
| void myfun( Rcpp::List lst, NumericVector vec ) {
| // do something
| }
| RCPP_MODULE(mymod) {
| func
(Repost due to wrong mail AD.)
Hello
I have created a function that I want to expose to R in my package using Rcpp
modules:
#include
using namespace Rcpp;
void myfun( Rcpp::List lst, NumericVector vec ) {
// do something
}
RCPP_MODULE(mymod) {
function("myfun", &myfun, "Does so
Hello
I have created a function that I want to expose to R in my package using Rcpp
modules:
#include
using namespace Rcpp;
void myfun( Rcpp::List lst, NumericVector vec ) {
// do something
}
RCPP_MODULE(mymod) {
function("myfun", &myfun, "Does something.");
}
The documentation