Re: [Rd] Using STL containers in R/C++

2006-01-06 Thread Paul Roebuck
On Thu, 5 Jan 2006, Dominick Samperi wrote: > Dirk Eddelbuettel wrote: > >> Dominick Samperi wrote a Rcpp.{hpp,cpp} class for >> C++ to R interface that is used in RQuantLib. Dominick >> was musing about releasing this stand-alone to CRAN >> as well, but I don't think it has happened. > > It just

Re: [Rd] Using STL containers in R/C++

2006-01-05 Thread Dominick Samperi
Dirk Eddelbuettel wrote: > Dominick Samperi wrote a Rcpp.{hpp,cpp} class for C++ to R interface that is > used in RQuantLib. Dominick was musing about releasing this stand-alone to > CRAN > as well, but I don't think it has happened. > It just happened. I uploaded Rcpp to CRAN today. The packa

Re: [Rd] Using STL containers in R/C++

2006-01-05 Thread Seth Falcon
You might want to take a look at the Bioconductor package RBGL which provides an R interface to the BGL which is C++ STL heavy, I believe. + seth __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel

Re: [Rd] Using STL containers in R/C++

2006-01-05 Thread Dirk Eddelbuettel
Andrew Finley umn.edu> writes: > I am in the process of writing an R extension in c++ and am using several > STL containers (e.g., vector, map, multimap double>). I make sure to clear all these containers at the end of the > .Call. Everything compiles and runs just fine, but I'm a bit worried

Re: [Rd] Using STL containers in R/C++

2006-01-04 Thread Prof Brian Ripley
Using C++ will reduce portability of your code. Using C++'s STL (not R's stl, so it is a good idea to spell out jargon) will reduce the portability further. R itself does not use C++, and although a C++ compiler is found, it is only very mininally tested (and in particular its headers and libr

[Rd] Using STL containers in R/C++

2006-01-04 Thread Andrew Finley
Hi All, I am in the process of writing an R extension in c++ and am using several STL containers (e.g., vector, map, multimap). I make sure to clear all these containers at the end of the .Call. Everything compiles and runs just fine, but I'm a bit worried since I haven't found any other packag