Re: [Rcpp-devel] linking Rcpp with external GSL library

2014-01-13 Thread Florian Oswald
t; | Florian, > | > | On 13 January 2014 at 15:48, Florian Oswald wrote: > | | sorry for crossposting this on stackoverflow, but I'm stuck. > | > | In the future, pick either SO or here. I'd post here. > | > | | I need some help with a linker error I get during install

[Rcpp-devel] linking Rcpp with external GSL library

2014-01-13 Thread Florian Oswald
Hi all, sorry for crossposting this on stackoverflow, but I'm stuck. I need some help with a linker error I get during installation of an Rcpp package on a linux system where I don't have admin rights. In a nutshell, I get this error: relocation R_X86_64_32 against `.rodata' can not be used when

Re: [Rcpp-devel] how to create an Rcpp::List in a standalone C++ application?

2013-12-18 Thread Florian Oswald
> Hi Florian, > > On 18 December 2013 at 15:53, Florian Oswald wrote: > | Thanks Dirk and Romain, > | > | Let me follow up on this if you don't mind, there's probably a lot of > ways to > | improve what I'm doing. Dirk, you mentioned blitz++. What I'm doi

Re: [Rcpp-devel] how to create an Rcpp::List in a standalone C++ application?

2013-12-18 Thread Florian Oswald
.attr("dim") = d; return result; } BlitzFun(1:8,c(2,2,2)) , , 1 [,1] [,2] [1,] 2.2 4.2 [2,] 3.2 5.2 , , 2 [,1] [,2] [1,] 6.2 8.2 [2,] 7.2 9.2 thanks florian On 18 December 2013 12:51, Dirk Eddelbuettel wrote: > > Hi Florian, > > On 18 Dec

[Rcpp-devel] how to create an Rcpp::List in a standalone C++ application?

2013-12-18 Thread Florian Oswald
Hi All, I have a C++ class that I build and test without the help of Rcpp. I use Rcpp as an interface, inputting and outputting data from and to the class. I'm stuck at the outputter. Ideally I would like to have this at the end of my program: Rcpp::List Results = MyClass.ExportToR(); where Exp

[Rcpp-devel] max length of Rcpp::List is 20 elements?

2013-10-23 Thread Florian Oswald
Dear all, I've noted that I cannot return an Rcpp::List longer than 20 elements. In particular, this here compiles: library(Rcpp) library(inline) src <- ' List out = List::create(_["x1"] = 1, _["x2"] = 2, _["x3"] = 3, _["x4"] = 4, _["x5"] = 5, _["x6"] = 6, _["x7"] = 7, _["x8"] = 8, _["x9"] = 9

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-23 Thread Florian Oswald
orian On 23 August 2012 14:11, Dirk Eddelbuettel wrote: > > On 23 August 2012 at 13:22, Florian Oswald wrote: > | Hi Dirk, > | > | my R version is > | R version 2.15.1 (2012-06-22) > > Good. > > | Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) > > Oh we

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-23 Thread Florian Oswald
r of test functions: 1 Number of errors: 1 Number of failures: 0 Best Florian On 23 August 2012 13:07, Dirk Eddelbuettel wrote: > > Florian, > > On 23 August 2012 at 12:45, Florian Oswald wrote: > | Davor, > | I'm at a loss for words. I get this error consistently ONLY when tr

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Florian Oswald
be loaded >> >> * DONE (mypack) > > sessionInfo: >> > sessionInfo() >> R version 2.15.1 (2012-06-22) >> Platform: x86_64-apple-darwin9.8.0/x86_64 (64-bit) >> >> locale: >> [1] C >> >> attached base packages: >> [1] stats g

Re: [Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Florian Oswald
I tried out your RcppBDT package and I could build it without any problem, and it works in R. It's quite strange. I've used Rcpp many times before without problem, most of the time with inline tough. I'm using the apple default compiler llvm-g++-4.2. Thanks for any other suggestions. I'll try to r

[Rcpp-devel] Rcpp.package.skeleton(module=TRUE) fails to load

2012-08-15 Thread Florian Oswald
I am having trouble with setting up a package that uses modules. I did Rcpp.package.skeleton("mypack",module=TRUE) and changed nothing in the source code. In the console I did R CMD INSTALL mypack --no-multiarch it compiles fine it seems, but it cannot load the package. I get the following erro