Re: [Rcpp-devel] advice on sharing C++ code across R and Python

2018-04-27 Thread David Bellot
In my experience, it's usually much easier to have a stand-alone C++ library and add the Rcpp and Boost.Python layer on top of it. As you said, NumericVector and other classes are not known in the Python world. You can always hook in into them from Boost.Python to expose them to Python but a clear

Re: [Rcpp-devel] expose functions dynamically

2017-12-04 Thread David Bellot
> > | - What is the correct way to do that ? > > In a package, yes. Modules require a package. Outside of a package, > consider > using a package instead :) > ​Huh ? OK I'm lost now :-D So in the end, how would it work ? What am I missing in my code to make it work ? ​ > ​​ > I think a few other

[Rcpp-devel] expose functions dynamically

2017-12-04 Thread David Bellot
Hi, I'd like to dynamically add functions to a module when I call one of its function. Later I will want to do the same for classes too, so that to create classes "on the fly". But for the moment, here is what I try to do and it doesn't work, because I can't see my dynamically created function in

Re: [Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-12 Thread David Bellot
> > Have you seen my 'nanotime' package? It does just that: provide nanosecond >> resolution by relying on RcppCCTZ for the parsing/formating and int64 for >> the >> storage. >> > ​Yes I use nanotime now. Excellent package. Also the solution to cast numericvector to long long is perfect too, as I

[Rcpp-devel] passing a bit64 vector to C++ and returning it

2017-07-11 Thread David Bellot
Hi, it looks like I couldn't find a proper solution, even after googling every where. The question is simple: I have a bit64 vector of integers (timestamps of financial tick data, you bet ?) and I want to pass it to a C++ function. The good ol' method is to convert it to strings, pass it and cast

Re: [Rcpp-devel] RInside status

2017-02-27 Thread David Bellot
wrote: > > David, > > On 27 February 2017 at 11:19, David Bellot wrote: > | I would like to know the status of the RInside project. In the Subversion > | repository on R-Forge, the description file says the version is 0.2.10.1 > ( > > We, not unlike many other people, h

[Rcpp-devel] RInside status

2017-02-27 Thread David Bellot
Hi, I would like to know the status of the RInside project. In the Subversion repository on R-Forge, the description file says the version is 0.2.10.1 ( https://r-forge.r-project.org/scm/viewvc.php/pkg/DESCRIPTION?view=markup&root=rinside) and here http://dirk.eddelbuettel.com/code/rinside/ the la