[Rcpp-devel] Is there a manual for RcppArmadillo?

2011-10-13 Thread Slava Razbash
Hello, Is there a manual that describes how to convert from Rcpp types to Armadillo/RcppArmadillo types and then back to R or Rcpp types? Also, just to confirm, is matrix multiplication in RcppArmadillo really as easy as C = A * B? Thank you. ___ Rcpp-

Re: [Rcpp-devel] Fwd: Building and Installing an R package built under RcppArmadillo on Mac OS X

2011-10-13 Thread Slava Razbash
Yes, I have concluded that I will be using RcppArmadillo - I have noticed that it is easier to use after read the RcppGSL vignette. On Fri, Oct 14, 2011 at 5:13 PM, Dirk Eddelbuettel wrote: > > On 14 October 2011 at 16:51, Slava Razbash wrote: > | I been planning to use RcppArmadillo to code pack

Re: [Rcpp-devel] Fwd: Building and Installing an R package built under RcppArmadillo on Mac OS X

2011-10-13 Thread Dirk Eddelbuettel
On 14 October 2011 at 16:51, Slava Razbash wrote: | I been planning to use RcppArmadillo to code packages intended for | release on CRAN. Following this discussion, it seems that I should | switch to RcppGSL because it does not have this function that causes | problems when compiling on Mac. No,

Re: [Rcpp-devel] Fwd: Building and Installing an R package built under RcppArmadillo on Mac OS X

2011-10-13 Thread Slava Razbash
I been planning to use RcppArmadillo to code packages intended for release on CRAN. Following this discussion, it seems that I should switch to RcppGSL because it does not have this function that causes problems when compiling on Mac. On Fri, Oct 14, 2011 at 3:01 PM, Dirk Eddelbuettel wrote: > >

Re: [Rcpp-devel] Fwd: Building and Installing an R package built under RcppArmadillo on Mac OS X

2011-10-13 Thread Dirk Eddelbuettel
On 13 October 2011 at 18:47, terrance savitsky wrote: | coding packages with RcppArmadillo intended for release on C-RAN.  I surely | hope the licensing issue resolves and these problems are temporary. While hope does spring eternal, I see little chance for this. OS X switches to the llvm/clang

Re: [Rcpp-devel] Fwd: Building and Installing an R package built under RcppArmadillo on Mac OS X

2011-10-13 Thread terrance savitsky
Thank you for guidance, Dirk. My package with inclusion of symmatl() builds and loads without issue under Windows using the Rtools toolchain for R-2.13.1. Since my package must build on all platforms supported by R to successfully upload to C-RAN, I will remove symmatl(). This may not be the onl

Re: [Rcpp-devel] Fwd: Building and Installing an R package built under RcppArmadillo on Mac OS X

2011-10-13 Thread Dirk Eddelbuettel
OS X is stuck at a known buggy version of g++, namely g++-4.2.1. Conrad has some issues with that upstream, we mostly cope. I just did a quick grep and symmatl() is defined in a short file fn_symmat.hpp without any #define or #if statement, and that file is directly included. If the code wor

[Rcpp-devel] Fwd: Building and Installing an R package built under RcppArmadillo on Mac OS X

2011-10-13 Thread terrance savitsky
Hello again Rcpp experts, I asked my colleague to attempt an install on his personal Macbook just to be sure he wasn't experiencing security issues at work. Anyway, he now receives an easier-to-comprehend error message. Yet, it appears to not recognize the 'symmatl' function of Armadillo (contai

Re: [Rcpp-devel] Request for help with compiling Rcpp example

2011-10-13 Thread Hadley Wickham
> | I wrote an function to check that you have a valid R development > | environment (with help from Simon Urbanek) for devtools.  See code > | below - and check with has_devel() > > Nice. We should borrow that idea as the issue comes up /a lot/. Please! > One improvement I would make--even thoug

Re: [Rcpp-devel] Request for help with compiling Rcpp example

2011-10-13 Thread Dirk Eddelbuettel
On 13 October 2011 at 18:15, Jian Kang wrote: | Thanks for your reply. | | Here is the response of 'Hello World' program: | | > src='#include | + using namespace std; | + void main() | + { | + cout << "Hello World!" << endl; | + cout << "Welcome to C++ Programming" << endl; | + }' | >  | > fx <

Re: [Rcpp-devel] Request for help with compiling Rcpp example

2011-10-13 Thread Dirk Eddelbuettel
On 13 October 2011 at 10:11, Hadley Wickham wrote: | > My best guess is that you have not installed the Rtools correctly.  Can you | > compile a simple 'hello, world' example in C or C++?  Can you rebuild R | > packages from source? | | I wrote an function to check that you have a valid R develop

Re: [Rcpp-devel] Request for help with compiling Rcpp example

2011-10-13 Thread Jelmer Ypma
There are a couple of things: * As far as I know, 'src' should not include a main() statement, nor should it have #include statements (these can be added in the 'includes' argument in cxxfunction) * The first argument in cxxfunction is sig. Since you don't supply an explicitly named sig argument,

Re: [Rcpp-devel] Request for help with compiling Rcpp example

2011-10-13 Thread Jian Kang
Thanks for your reply. Here is the response of 'Hello World' program: > src='#include + using namespace std; + void main() + { + cout << "Hello World!" << endl; + cout << "Welcome to C++ Programming" << endl; + }' > > fx <- cxxfunction(src,plugin = "Rcpp",verbose=T) >> setting environment varia

Re: [Rcpp-devel] Request for help with compiling Rcpp example

2011-10-13 Thread Hadley Wickham
> My best guess is that you have not installed the Rtools correctly.  Can you > compile a simple 'hello, world' example in C or C++?  Can you rebuild R > packages from source? I wrote an function to check that you have a valid R development environment (with help from Simon Urbanek) for devtools.

Re: [Rcpp-devel] Request for help with compiling Rcpp example

2011-10-13 Thread Dirk Eddelbuettel
Hi, And thanks for posting here. On 13 October 2011 at 16:16, Slava Razbash wrote: | I am trying to compile the example program with "inline" from the | jstatsoft article by Eddelbuettel and Francois (2011). I am using | WinXP and R 2.13.2 and RCPP 0.9.7. I am using Rtools 2.14. | | My code: |