Re: [Rcpp-devel] NA value for dates

2012-10-05 Thread Dirk Eddelbuettel
On 5 October 2012 at 23:55, Theodore Lytras wrote: | Στις Παρ 05 Οκτ 2012, ο/η Dirk Eddelbuettel έγραψε: | > On 5 October 2012 at 21:39, Theodore Lytras wrote: | > | Hello all, | > | | > | I am trying to pass from C++ to R a DateVector with a few missing items | > | (NAs). I can't seem to find a

Re: [Rcpp-devel] NA value for dates

2012-10-05 Thread Theodore Lytras
Στις Παρ 05 Οκτ 2012, ο/η Dirk Eddelbuettel έγραψε: > On 5 October 2012 at 21:39, Theodore Lytras wrote: > | Hello all, > | > | I am trying to pass from C++ to R a DateVector with a few missing items > | (NAs). I can't seem to find a way, though. > | There does not seem to be a NA_DATE (like NA_RE

Re: [Rcpp-devel] unable to open the base package (Dirk Eddelbuettel)

2012-10-05 Thread Dirk Eddelbuettel
edd@max:~/svn/rinside/pkg/inst/examples/standard$ cat rinside_test2.cpp // -*- mode: C++; c-indent-level: 4; c-basic-offset: 4; indent-tabs-mode: nil; -*- // // Show the search path to check if package methods is loaded // // Copyright (C) 2012 Dirk Eddelbuettel and GPL'ed #include

Re: [Rcpp-devel] unable to open the base package (Dirk Eddelbuettel)

2012-10-05 Thread Dirk Eddelbuettel
On 5 October 2012 at 13:09, Peter deVoil wrote: | I'm not sure whether it's appropriate, but with Rtools 2.15 and R 2.15.1 | under windows, I had to kick off my package with | ... | R = new RInside(argc, argv, true); | R->parseEval("library(\"methods\")"); | (*R)["xyz"] = LOAD_R

Re: [Rcpp-devel] NA value for dates

2012-10-05 Thread Dirk Eddelbuettel
On 5 October 2012 at 21:39, Theodore Lytras wrote: | Hello all, | | I am trying to pass from C++ to R a DateVector with a few missing items (NAs). | I can't seem to find a way, though. | There does not seem to be a NA_DATE (like NA_REAL, etc), and the default | constructor for Rcpp::Date create

[Rcpp-devel] NA value for dates

2012-10-05 Thread Theodore Lytras
Hello all, I am trying to pass from C++ to R a DateVector with a few missing items (NAs). I can't seem to find a way, though. There does not seem to be a NA_DATE (like NA_REAL, etc), and the default constructor for Rcpp::Date creates a date of "-5877641-06-23". I have even tried to pass an Rcp