Re: [Rcpp-devel] Building a Package created with Rcpp/RcppArmadillo on the Mac

2011-10-18 Thread terrance savitsky
Hi Steve, Thanks for your reply. 1. Yes, simple scripts run via inline without issue. ( Rcpp and RcppArmadillo (latest versions) build and install without issue). So I am confused by the syntax errors when including libRcpp.a when attempting to build my package. 2. > sessionInfo() R version 2

Re: [Rcpp-devel] Building a Package created with Rcpp/RcppArmadillo on the Mac

2011-10-18 Thread Steve Lianoglou
What is the output of sessionInfo()? In particular it will be helpful to know what versions of Rcpp and RcppArmadillo you have installed on the mac you are trying to compile on. Also, do "simple" things work? Can you run a trivial `inline` example, for instance? -steve On Tue, Oct 18, 2011 at 12

Re: [Rcpp-devel] Issue Installing Rcpp on Solaris

2011-10-18 Thread Tim Jurka
Thank you Martyn! I'll ask our sysadmins to install SUNWhea for me. Also, do you know if Rcpp works under solaris-sparc even though it fails the CHECK? Thank you for your time! Tim On Oct 18, 2011, at 6:18 AM, Martyn Plummer wrote: > On Mon, 2011-10-17 at 16:13 -0500, Dirk Eddelbuettel wrote:

[Rcpp-devel] Building a Package created with Rcpp/RcppArmadillo on the Mac

2011-10-18 Thread terrance savitsky
Dear Rcpp experts, I'm finding difficulty to build a package (created on Win) that uses Rcpp and RcppArmadillo on the Mac. I've attempted the build on multiple machines to rule out local issues. I find a June 27 post on the Rcpp list ( http://lists.r-forge.r-project.org/pipermail/rcpp-devel/2011

Re: [Rcpp-devel] Issue Installing Rcpp on Solaris

2011-10-18 Thread Dirk Eddelbuettel
On 18 October 2011 at 15:18, Martyn Plummer wrote: | On Mon, 2011-10-17 at 16:13 -0500, Dirk Eddelbuettel wrote: | > Hi Tim, | > | > On 17 October 2011 at 13:39, Tim Jurka wrote: | > | Hi Rcpp-devel, | > | | > | When installing Rcpp on Solaris ( R2.13.1 Platform: i386-pc-solaris2.10 (32-bit) )

Re: [Rcpp-devel] Compiling packages that use RcppArmadillo

2011-10-18 Thread Dirk Eddelbuettel
On 18 October 2011 at 22:48, Slava Razbash wrote: | Hello, | | Could you please confirm/deny if I am compiling "correctly". The | compiled package works, but I want to make sure that things are done | properly and that I am not using a "hack" that could cause unintended | side effects. [...] | I

Re: [Rcpp-devel] What is the "correct" way to print text to R with Rcpp?

2011-10-18 Thread Dirk Eddelbuettel
On 18 October 2011 at 16:52, Slava Razbash wrote: | What is the "correct" way to print text to R with Rcpp? I find that | "std::cout<<" will only work if i running R from a console. I am using | winXP. See the manual 'Writing R Extensions' which ships with R. Rcpp, as an extension to R, is gov

[Rcpp-devel] Compiling packages that use RcppArmadillo

2011-10-18 Thread Slava Razbash
Hello, Could you please confirm/deny if I am compiling "correctly". The compiled package works, but I want to make sure that things are done properly and that I am not using a "hack" that could cause unintended side effects. I have a pre-existing package, the package previously does use some C co

Re: [Rcpp-devel] What is the "correct" way to print text to R with Rcpp?

2011-10-18 Thread Jelmer Ypma
Hi all, another way is to define a new ostream as below. This is modified from an answer on stackoverflow, where someone ran into a similar problem with Matlab ( http://stackoverflow.com/questions/243696/correctly-over-loading-a-stringbuf-to-replace-cout-in-a-matlab-mex-file ). Using this code yo