Re: [Rcpp-devel] Rcpp+bigmemory+inline

2014-01-27 Thread Dirk Eddelbuettel
On 27 January 2014 at 16:15, Kevin Ushey wrote: | The error says that it can't find the boost header file | 'boost/interprocess/mapped_region.hpp'. Previously, when the article | was written, this part of boost was packaged as part of bigmemory. | Now, bigmemory links to BH | (http://cran.r-projec

Re: [Rcpp-devel] Rcpp+bigmemory+inline

2014-01-27 Thread Dirk Eddelbuettel
Taigo, On 27 January 2014 at 17:58, Tiago Fragoso wrote: | I'm trying to use Rcpp with bigmemory, and I'm using the exact same example | from http://gallery.rcpp.org/articles/using-bigmemory-with-rcpp/  , but I'm | encountering the following error: | | > sourceCpp("example.cpp") | In file includ

Re: [Rcpp-devel] Rcpp+bigmemory+inline

2014-01-27 Thread Kevin Ushey
The error says that it can't find the boost header file 'boost/interprocess/mapped_region.hpp'. Previously, when the article was written, this part of boost was packaged as part of bigmemory. Now, bigmemory links to BH (http://cran.r-project.org/web/packages/BH/index.html), a CRAN package assembled

Re: [Rcpp-devel] Rcpp+bigmemory+inline

2014-01-27 Thread Jaime Ashander
My only idea, based on the snip below, is that maybe boost headers are not installed, or installed to a directory other than where bigmemory knows to look. In recent versions Bigmemory uses headers via the BH package, which I guess should be installed via dependencies. Providing your sessionInfo()

[Rcpp-devel] Rcpp+bigmemory+inline

2014-01-27 Thread Tiago Fragoso
Hi all, I'm trying to use Rcpp with bigmemory, and I'm using the exact same example from http://gallery.rcpp.org/articles/using-bigmemory-with-rcpp/ , but I'm encountering the following error: > sourceCpp("example.cpp") In file included from /home/tiago/R/x86_64-pc-linux-gnu-library/3.0/bigmemor

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-12 Thread Jay Emerson
Or -- in all our spare time! -- we should really consider doing the right thing and Rcpp-ifying the bigmemory packages. It's probably too late for a GSOC project at this point. Mike and I will talk about it. If we think we could manage it over 2-3 intense days, maybe it will happen this summer.

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-12 Thread JJ Allaire
Alex, Glad that you sorted all of this out! Wanted to also point out that there is a mechanism for bigmemory to have it's headers automatically included in RcppExports.cpp and perhaps this is something Michael can pursue so everything works automatically in the future. In short, if bigmemory defi

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-11 Thread Alex Ustian
All right! I think I have it figured out, at least for the toy functions/package. What wasn't compiling wasn't my functions, it was RcppExports.cpp. sourceCpp (and hence also the knit example) have been working for me all along. The only issue (apparently) was that RcppExports.cpp was not includ

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-11 Thread Dirk Eddelbuettel
On 11 April 2013 at 16:14, Alex Ustian wrote: | Sorry to be dense, but you mean to copy and paste the source into an Rmd file | and knit it?  If yes, then I did just that and it did work. Good. Now try to find the differences to your code, which as I understand your post, does not compile. As

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-11 Thread Alex Ustian
Dirk, Sorry to be dense, but you mean to copy and paste the source into an Rmd file and knit it? If yes, then I did just that and it did work. Thanks again, Alex On Thu, Apr 11, 2013 at 3:35 PM, Dirk Eddelbuettel wrote: > > Alex, > > Thanks to Mike, we do have one public, posted, working exa

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-11 Thread Dirk Eddelbuettel
Alex, Thanks to Mike, we do have one public, posted, working example of Rcpp and bigmemory in the Rcpp Gallery: http://gallery.rcpp.org/articles/using-bigmemory-with-rcpp/ So before we go any further with this, can you please confirm that you manage to re-build that example (once you grab t

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-11 Thread Alex Ustian
Hello again, Thank you for looking over my issue and sorry for not giving reproducible code. I guess assumed that I was doing something obviously wrong but just didn't see it. I did add an entry for bigmemory (and Rcpp) in the DESCRIPTION file for both the Depends and LinkingTo fields. Here is

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-10 Thread JJ Allaire
Alex, Did you add an entry for bigmemory in the Depends field of the package DESCRIPTION file? That would certainly explain the errors you are seeing. J.J. On Wed, Apr 10, 2013 at 12:50 PM, Alex Ustian wrote: > Sorry for this double post, I am now correctly subscribed to the list! > > Hello, >

Re: [Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-10 Thread Dirk Eddelbuettel
Alex, On 10 April 2013 at 15:50, Alex Ustian wrote: | Sorry for this double post, I am now correctly subscribed to the list! No double post. If you're not subscribed, it just goes to some electronic bin... | I'm having an issue building a package (named bigExplore) in RStudio which uses | both

[Rcpp-devel] Rcpp, bigmemory, package creation

2013-04-10 Thread Alex Ustian
Sorry for this double post, I am now correctly subscribed to the list! Hello, I'm having an issue building a package (named bigExplore) in RStudio which uses both Rcpp and the MatrixAccessor from bigmemory. All of my functions seem to work fine when I was interactively developing them via source

Re: [Rcpp-devel] Rcpp+bigmemory

2013-04-02 Thread Aileen Lin
Yes, I did it. Thanks. Aileen Lin View my profile: au.linkedin.com/in/aileen2 On 2 Apr 2013 21:03, "JJ Allaire" wrote: > Hi Aileen, > > You should also add bigmemory to the the Depends line of the DESCRIPTION > file. See: > http://cran.r-project.org/doc/manuals/R-exts.html#Linking-to-native-rou

Re: [Rcpp-devel] Rcpp+bigmemory

2013-04-02 Thread JJ Allaire
Hi Aileen, You should also add bigmemory to the the Depends line of the DESCRIPTION file. See: http://cran.r-project.org/doc/manuals/R-exts.html#Linking-to-native-routines-in-other-packages J.J. On Tue, Apr 2, 2013 at 2:49 AM, Aileen Lin wrote: > Problem solved. Need to add bigmemory after ' l

[Rcpp-devel] Rcpp+bigmemory

2013-04-01 Thread Aileen Lin
Problem solved. Need to add bigmemory after ' linking:' in description file. Thanks. Aileen Lin View my profile: au.linkedin.com/in/aileen2 ___ Rcpp-devel mailing list Rcpp-devel@lists.r-forge.r-project.org https://lists.r-forge.r-project.org/cgi-bin/ma

[Rcpp-devel] rcpp + bigmemory

2013-04-01 Thread Aileen Lin
Hi there, I tried to build a package where I used rcpp and bigmemory. My .cpp file starts with: // [[Rcpp::depends(bigmemory)]] #include #include using namespace Rcpp; ~~~ However, there is an error message: devtools::document()Updating cafs documentation