Dear all,
I believe that everyone in this list has seen the benefit of using Rcpp to
incorporate C++ code and develop R packages, but it's also the fact that
currently there is rarely a complete reference which documents every detail
of the classes and functions inside Rcpp.
To make this situation
Xiao,
On 3 September 2014 at 21:39, Xiao He wrote:
| Hi Kevin,
|
| Yes, those extra includes are there because some functions taken from the MASS
| package need these them.
|
| I rearranged the includes by placing #include before the
ones
| below, and was able to reduce the number of errors
Hi Kevin,
Yes, those extra includes are there because some functions taken from the
MASS package need these them.
I rearranged the includes by placing #include before the
ones below, and was able to reduce the number of errors from 7 to 4.
#include
#include
#include
Is it possible for you t
(sorry -- finger slipped and submitted early)
> sessionInfo()
R version 3.0.2 (2013-09-25)
Platform: x86_64-pc-linux-gnu (64-bit)
locale:
[1] LC_CTYPE=en_US.UTF-8 LC_NUMERIC=C
[3] LC_TIME=en_US.UTF-8LC_COLLATE=en_US.UTF-8
[5] LC_MONETARY=en_US.UTF-8LC_MESSAGES=en_US.UTF-8
[7
Hi Pratibha,
I highly doubt that the segfault is related to the optimization level.
FWIW, I still cannot replicate the segfault as you described -- Ubuntu
14.04, gcc 4.8.2, and...
Kevin
On Wed, Sep 3, 2014 at 12:34 PM, Pratibha Rana wrote:
> I think I got to the bottom of the issue. I was usi
I think I got to the bottom of the issue. I was using the -O0 option
instead of the -O2 option while compiling the code. Including the -O2
option resolved the issue.
Thanks
Pratibha
On 09/02/2014 04:49 PM, Dirk Eddelbuettel wrote:
> Hi,
>
> On 2 September 2014 at 20:16, Pratibha Rana wrote:
> | H
Hi Xiao,
I can reproduce the error -- but why do you have the includes as such, e.g.:
#include
#include
#include
#include /* for the QR routines */
#include /* for the *sort() routines */
#include
#include
#define BIG DBL_MAX
My best guess is that you'll have to re-organize the incl
Hi all,
I tried to compile a script using the code below:
Rscript compiler.R '/Users/xiaohe/WRScpp/src/test.cpp'
And I got 7 error messages in total as shown below. I am on a
On 2 September 2014 at 20:42, Christian Gunning wrote:
| I'm working on a package that includes a unit test that calls
| sourceCpp() to test a particular use-case.
[...]
| My question is whether there's a sane workaround, or if I should give
| up on these tests. Alternately, is there a cleaner wa