Search Archives
Search tips
from:Name
Search by author name, e.g. from:Duncan Murdoch
"exact phrase"
Match an exact phrase
word1 word2
Match messages containing both words
Date range
Use the date pickers to filter results to a time period
Use the list dropdown to narrow results to a specific mailing list. Combine from: with other terms to filter by author and content.
Is it possible to have a class wrapped in rcpp inherit directly from a superclass? E.g., I have class_<tcfaIndices>( "tcfaIndices" ) .constructor<long>() .method("SetTCFADefinition", &tcfaIndices::SetTCFADefinition) .method("getTCFALabels", &tcfaIndices::getTCFALabels) ; and class_<morphologyIndices>( "morphologyIndices" ) .constructor<long>() .method("getCentroidLumen...
I would like to be able to create object factories in my rcpp module, such that I can call classA::GetInitializedB(), and get an S4 object (module instance?) back. From what I can tell, the "module" class definition macros are...
I use cmake for all my makefile generation. I realize there are other good tools out there; cmake meets my needs rather well, and I'm happy with it. Most libraries I use in my development (cgal, python, perl, swig...
I'm fairly sure I'm not doing anything at all with multiple inheritance. This is a single instance of single inheritance. I will peruse the list; what I had seen in my searches so far had suggested no conclusive...
On 10/04/2011 05:05 PM, Douglas Bates wrote: > I am working with pharmacokinetic/pharmacodynamic models, some of > which can only be represented as the solutions of ordinary > differential equations. I am looking for ODE sofware written in C...
Since I'm a bit of a glutton for punishment, and I would like to see this feature...are there major technical hurdles as to why this has not been implemented (e.g., I should just give up and find...
In the interest of sharing, I figured I should supply what eventually worked. I'm kicking myself, because I tried this early on when I was trying to create an SEXP operator, and abandoned it because of const conflicts, but...
A slightly hackish, if effective, workaround I've used in this instance is to have "as<>()" convert a string argument to a class return value, thereby avoiding the metaphysics of creating a c++ class in R. template <> fusionProject::TCFAFunctor *as...
That actually looks rather perfect. Thanks! -rd On 12/14/2012 01:54 PM, JJ Allaire wrote: > We wrote one for RStudio, not sure if it will fully meet your needs > but it's at least a starting point: > > https...
What I've been doing the past couple years, which has worked extremely well, is to use a configure script (I've used perl because it allows me to do a bunch of other build-time processing that's specific...
Also, you're failing to tell CMake to build a shared library. You need SET(CMAKE_C++_CREATE_SHARED_LIBRARY 1) And if you're using Rcpp, also need to explicitly add Rcpp link flags (Rscript -e Rcpp:::LdFlags()) -rd...
One other detail: cmake by default names all library outputs "lib[TARGET]". (e.g., there *is* no my_package.so, but possibly a libmy_package.so) If you add the line SET_TARGET_PROPERTIES(fusionIndices PROPERTIES PREFIX "") you'll have...
Since cholmod has specific functions for all the allocation/free tasks involved in the different data structs, if you're really ambitious, you could probably create a templated mgr c++ class, where the template args are the specific memory management...
I must admit, it's been awhile since I cobbled together my solution; I know it's worked seamlessly on 2 or 3 linux variants, but hasn't been tested beyond that. I do recall getting frustrated with making cmake...
Thanks. I had recently been playing with using XPtr to do some of the passing RcppModule objects back into c++, with only limited success, so this will be a welcome change. Also, I can probably finally cull my hackery of...
On 09/06/2012 08:04 PM, Dirk Eddelbuettel wrote: > And 'morphologyIndices' is the class that you wrapped via Rcpp modules, so > now you are calling the object creation from C++ through make_new_object? yup > I > wonder why we...
Thanks, I'll weigh my options going forward, but I appreciate seeing another approach. --rd On 10/05/2011 08:54 AM, Douglas Bates wrote: > On Wed, Oct 5, 2011 at 8:51 AM, Douglas Bates<bates at stat.wisc...
I'll do that. I may use JJ's stuff as a starting point as well, but I'll look at the RInside stuff and drop Peter a line as appropriate. It may also be worthwhile to talk to the...
Absolutely, my apologies, I'd just been hitting "reply". It does appear as though instances of "classes" as encapsulated by modules show up in R as S4 objects. I had naively thought that by using the Rcpp::S4 constructor I...
Can't find what you're looking for? Try searching with Google .