Re: [Rcpp-devel] Module with out default constructor.

2010-10-27 Thread Romain Francois
Le 27/10/10 12:32, Andrew Redd a écrit : Is it possible with Rcpp Modules to have a class that does not have a default constructor? Consider this example - #include #include class c1{ private: int n; int * x; c1(); public: c1(int n):n(n){} int getn(){return n;} }; RCPP_MODULE(c1){ using na

[Rcpp-devel] ambiguous overload for ‘operator[ ]’

2010-10-27 Thread Kaveh Vakili
trying to feed the beast something line by line (if this works to the end it may become an instance of quickselect() :) int k = Rcpp::as(kr); NumericVector pdA(pdAr); int n = pdA.size(); //this: //double *pdB = new double [n] ; //becomes

Re: [Rcpp-devel] Searching the archives ?

2010-10-27 Thread Dirk Eddelbuettel
On 27 October 2010 at 22:39, Johannes Egner wrote: | Not exactly sure what Dirk meant by "web view offered by R-Forge", but this | may work better (insofar as number of hits are concerned) than gmane and | mail-archive: | | http://lists.r-forge.r-project.org/mailman/swish.cgi?query=listname%3D%2

Re: [Rcpp-devel] Inline (ghost from the devel still walks?)

2010-10-27 Thread Dirk Eddelbuettel
On 27 October 2010 at 23:31, Kaveh Vakili wrote: | Thanks again. One last question, i have some codes written last year by a colleague 'the other way' (in c++ using RInside) that i can partially use. | Can you make some (necessarily very general) comments on the performance gap between the two

Re: [Rcpp-devel] Searching the archives ?

2010-10-27 Thread Johannes Egner
Not exactly sure what Dirk meant by "web view offered by R-Forge", but this may work better (insofar as number of hits are concerned) than gmane and mail-archive: http://lists.r-forge.r-project.org/mailman/swish.cgi?query=listname%3D%22rcpp-devel%22 Jo On Wed, Oct 27, 2010 at 8:42 PM, Dirk Edde

Re: [Rcpp-devel] Inline (ghost from the devel still walks?)

2010-10-27 Thread Kaveh Vakili
Thanks again. One last question, i have some codes written last year by a colleague 'the other way' (in c++ using RInside) that i can partially use. Can you make some (necessarily very general) comments on the performance gap between the two approaches (i.e. inline and RInside), all else equal.

Re: [Rcpp-devel] Inline (ghost from the devel still walks?)

2010-10-27 Thread Dirk Eddelbuettel
On 27 October 2010 at 22:24, Kaveh Vakili wrote: | In trying to educated my self, i'm browsing through the abysses | of the codes with inline taggs in the ML. | | http://article.gmane.org/gmane.comp.lang.r.rcpp/611 That is a very good idea, but you have to be careful about both the context and

[Rcpp-devel] Inline (ghost from the devel still walks?)

2010-10-27 Thread Kaveh Vakili
In trying to educated my self, i'm browsing through the abysses of the codes with inline taggs in the ML. http://article.gmane.org/gmane.comp.lang.r.rcpp/611 I tried to run fx5 (exactly as is shown there) but also any of the codes from the tread (fx2,...,) gives the same error message: Error

Re: [Rcpp-devel] Module with out default constructor.

2010-10-27 Thread Dirk Eddelbuettel
On 27 October 2010 at 13:32, Andrew Redd wrote: | Is it possible with Rcpp Modules to have a class that does not have a | default constructor? Consider this example | - | #include | #include | class c1{ | private: | int n; | int * x; | c1(); | public: | c1(int n):n(n){} | int getn(){return

Re: [Rcpp-devel] Searching the archives ?

2010-10-27 Thread Kaveh Vakili
thank you very much. > >On 27 October 2010 at 21:25, Kaveh Vakili wrote: >| Are the archives of this devel somehow searchable ? >| If yes how ? > >Google, rseek.org, etc may work well enough. However, you are not limited by >the web view offered of R-Forge -- the list also has subscriptions

Re: [Rcpp-devel] Searching the archives ?

2010-10-27 Thread Dirk Eddelbuettel
On 27 October 2010 at 21:25, Kaveh Vakili wrote: | Are the archives of this devel somehow searchable ? | If yes how ? Google, rseek.org, etc may work well enough. However, you are not limited by the web view offered of R-Forge -- the list also has subscriptions by gmame and the similar mail-arch

[Rcpp-devel] Module with out default constructor.

2010-10-27 Thread Andrew Redd
Is it possible with Rcpp Modules to have a class that does not have a default constructor? Consider this example - #include #include class c1{ private: int n; int * x; c1(); public: c1(int n):n(n){} int getn(){return n;} }; RCPP_MODULE(c1){ using namespace Rcpp; class_("c1") .property("n",&c

[Rcpp-devel] Searching the archives ?

2010-10-27 Thread Kaveh Vakili
Are the archives of this devel somehow searchable ? If yes how ? Also, my questions essentially relate to 'inline', Am i at the right place ? If not can you advise ? thanks, ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://list

Re: [Rcpp-devel] [Rd] Sections 5.8.1 and 5.8.2 of Writing R Extensions (LinkingTo)

2010-10-27 Thread Dominick Samperi
On Wed, Oct 27, 2010 at 2:43 PM, Simon Urbanek wrote: > > On Oct 27, 2010, at 1:22 PM, Dominick Samperi wrote: > > > Hello, > > > > In Sections 5.8.1 and 5.8.2 of Writing R Extensions the following pattern > is > > suggested > > for getting the path to a file in another package: > > > > PKGB_PATH=

Re: [Rcpp-devel] [Rd] Sections 5.8.1 and 5.8.2 of Writing R Extensions (LinkingTo)

2010-10-27 Thread Simon Urbanek
On Oct 27, 2010, at 1:22 PM, Dominick Samperi wrote: > Hello, > > In Sections 5.8.1 and 5.8.2 of Writing R Extensions the following pattern is > suggested > for getting the path to a file in another package: > > PKGB_PATH=Œecho ‚library(packB); cat(system.file("libs", package="packB"))‚ > \ > |