[Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread John Swan
Hi, I just purchased Dirk's book on Seamless Rcpp and I'm finding it very useful. However, I'm having a strange error running RcppArmadillo inline, where the book examples seem to manage it effortlessly. I've been stuck on this for hours. Any help is most appreciated. I am using R 3.0 on Mac O

Re: [Rcpp-devel] two minor bugs with Rcpp's sugar table

2013-06-26 Thread Romain Francois
Thanks for this. We'll have a look. Romain Le 25/06/13 22:06, Kevin Ushey a écrit : Hi guys, Sorry to be bringing this up so close after the CRAN release, but I just stumbled upon them today. - 1) The table function occasionally produces names as '-0', rather than '0', for numeric vector

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Romain Francois
Hello, I don't have a copy of the book at hand. Below are some insights on what you are doing wrong. Hope this helps. Romain Le 26/06/13 11:11, John Swan a écrit : Hi, I just purchased Dirk's book on Seamless Rcpp and I'm finding it very useful. However, I'm having a strange error running

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Dirk Eddelbuettel
Hi John, Thanks for posting here. On 26 June 2013 at 11:11, John Swan wrote: | Hi, | | I just purchased Dirk's book on Seamless Rcpp and I'm finding it very useful. | | However, I'm having a strange error running RcppArmadillo inline, where the | book examples seem to manage it effortlessly.

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Anirban Mukherjee
library not found for -lgfortran > collect2: ld returned 1 exit status > make: *** [sourceCpp_13326.so] Error 1 > > > The XCode command line tools *are* installed - I'm an iOS developer so I > always make sure that they are there: > > John-MBPR:BDGraphSource johnswan$ which llvm-g

[Rcpp-devel] Unicode on windows

2013-06-26 Thread Ned Harding
I am having issues with the wide string conversion to and from Rcpp. When taking in a string from R that is encoding UTF-8, I would expect as to have converted the utf-8 to a wide string. Instead, it is just widening all the characters and leaving the UTF-8 encoding. I have no issue with UTF-

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread John Swan
Hi all, Thanks for all the advice. I had a large number of rookie mistakes in there! However, I still can't get anything to work. Details below: I do have RcppArmadillo installed: > installed.packages() Package LibPath

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Dirk Eddelbuettel
On 27 June 2013 at 02:39, John Swan wrote: | Hi all, | | Thanks for all the advice. I had a large number of rookie mistakes in there! [...] | Is there any way I can get more verbose information, get at the environment variables or compiler options used by Rcpp or anything? Yes. Read the hel

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Dirk Eddelbuettel
On 26 June 2013 at 19:55, Dirk Eddelbuettel wrote: | | On 27 June 2013 at 02:39, John Swan wrote: | | Hi all, | | | | Thanks for all the advice. I had a large number of rookie mistakes in there! | | [...] | | | Is there any way I can get more verbose information, get at the environment vari

Re: [Rcpp-devel] Seamless Rcpp gives errors with RcppArmadillo

2013-06-26 Thread Anirban Mukherjee
>> WARNING: The tools required to build C++ code for R were not found. >> >> Please install Command Line Tools for XCode (or equivalent). >> >> ld: warning: directory not found for option >> '-L/usr/local/lib/gcc/i686-apple-darwin8/4.2.3/x86_64' >> ld: warning: dire