Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2014-01-02 Thread Dirk Eddelbuettel
On 2 January 2014 at 09:51, Steve Lianoglou wrote: | On Thu, Jan 2, 2014 at 2:04 AM, mh fe wrote: | > To install "RCurl" you need to install some c++ library headers (in | > Ubuntu). I had the same problem but unfortunately I can not remember them | > exactly, try to install the libraries that

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2014-01-02 Thread Steve Lianoglou
Hi, On Thu, Jan 2, 2014 at 2:04 AM, mh fe wrote: > To install "RCurl" you need to install some c++ library headers (in > Ubuntu). I had the same problem but unfortunately I can not remember them > exactly, try to install the libraries that have the "curl" in their names. Although I'm not on a

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2014-01-02 Thread mh fe
> rcpp-de...@r-forge.wu-wien.ac.at > Subject: Re: [Rcpp-devel] calling a homegrown cpp function from my own > package when using sourceCpp > > > I am reluctant to follow Romains suggestion because the package has a > lot of c-code in it, so using load_all() takes quite some time be

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2014-01-02 Thread Søren Højsgaard
[Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp > I am reluctant to follow Romains suggestion because the package has a lot of > c-code in it, so using load_all() takes quite some time because all c and c++ > code is being compiled. (Maybe that i

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-31 Thread Hadley Wickham
> I am reluctant to follow Romains suggestion because the package has a lot of > c-code in it, so using load_all() takes quite some time because all c and c++ > code is being compiled. (Maybe that is just slow on windows? I tried on linux > (ubuntu) too but I can't get devtools installed (becaus

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-30 Thread Dirk Eddelbuettel
e anyone has a moment to look at it. | | | | Thanks in advance for any additional help. | | | | All the best | | Søren | | | | | | | | | | | | | | | | | | -Original Message----- | | From: Dirk Eddelbuettel [mailto:e...@debian.org] | | Sent: 30. december 2013 03:13 | | To: Søren Højsgaard |

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-30 Thread Dirk Eddelbuettel
On 30 December 2013 at 14:27, Søren Højsgaard wrote: | I am reluctant to follow Romains suggestion because the package has a lot of c-code in it, so using load_all() takes quite some time because all c and c++ code is being compiled. (Maybe that is just slow on windows? I tried on linux (ubuntu

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-30 Thread Søren Højsgaard
| | -Original Message----- | From: Dirk Eddelbuettel [mailto:e...@debian.org] | Sent: 30. december 2013 03:13 | To: Søren Højsgaard | Cc: rcpp-de...@r-forge.wu-wien.ac.at | Subject: Re: [Rcpp-devel] calling a homegrown cpp function from my own | package when using sourceCpp | | | Hi Søren, |

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-30 Thread Dirk Eddelbuettel
[mailto:e...@debian.org] | Sent: 30. december 2013 03:13 | To: Søren Højsgaard | Cc: rcpp-de...@r-forge.wu-wien.ac.at | Subject: Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp | | | Hi Søren, | | On 30 December 2013 at 01:59, Søren Højsgaard wrote:

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-30 Thread Søren Højsgaard
uot;new file" in case anyone has a moment to look at it. Thanks in advance for any additional help. All the best Søren -Original Message- From: Dirk Eddelbuettel [mailto:e...@debian.org] Sent: 30. december 2013 03:13 To: Søren Højsgaard Cc: rcpp-de...@r-forge.wu-wien.ac.at Subj

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-30 Thread Romain Francois
Hi, If both these functions will end up in the same package, then I’d suggest to put both files in the src directory and use devtools::load_all on your package root directory. Dirk’s recommendation is relevant bar is in its own package and calls foo from another package. Might not be what yo

Re: [Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-29 Thread Dirk Eddelbuettel
Hi Søren, On 30 December 2013 at 01:59, Søren Højsgaard wrote: | I have created a function c++ function foo which I export with //[[Rcpp::export]]. I've put the file foo.cpp with the function into the src dir of the package mypack; I've run compileAttributes and I can see the function in mypac

[Rcpp-devel] calling a homegrown cpp function from my own package when using sourceCpp

2013-12-29 Thread Søren Højsgaard
Dear all, I have created a function c++ function foo which I export with //[[Rcpp::export]]. I've put the file foo.cpp with the function into the src dir of the package mypack; I've run compileAttributes and I can see the function in mypack_RcppExport.h and the automatically generated interface