On 19 July 2013 at 08:41, Dirk Eddelbuettel wrote:
| -- let me quote/paraphrase Brian Ripley: show a real name and address /
| affilation. You evidently expect to be receiving continued _free_ help so
| the least you could do is to play by the rules. Which include showing a
| variabl
On 19 July 2013 at 08:29, Rodney Sparapani wrote:
| On 07/19/2013 07:32 AM, Dirk Eddelbuettel wrote:
| > Oh, and stop using the hidous '=' for assignment in R;-)
| >
| > Dirk
|
| And, real names are mandatory mystery guest ;o)
Yes indeed!
Dirk
--
Dirk Eddelbuettel | [email protected] | http:/
On 19 July 2013 at 15:23, stat quant wrote:
| Just updated my R from 3.0.0 to 3.0.1...
| __the bug disappeared__
|
| Sorry for the inconvenience !
No problem.
A couple of things, though:
-- show some courtesy: if you rapid-fire email, at least _cut_ all the
quoted stuff. Everybody jus
On 07/19/2013 07:32 AM, Dirk Eddelbuettel wrote:
Oh, and stop using the hidous '=' for assignment in R;-)
Dirk
And, real names are mandatory mystery guest ;o)
--
Rodney Sparapani, PhD
Manager of Statistical & Computational Operations
Center for Patient Care and Outcomes Research (PCOR)
Medica
Just updated my R from 3.0.0 to 3.0.1...
__the bug disappeared__
Sorry for the inconvenience !
2013/7/19 stat quant
> And I've been carefull to get a fresh session from R --vanilla so I have
> no other package loaded and nothing from my Rprofile exectued, so I am a
> bit puzzled...
>
> Regards
Dirk,
that's strange but your code crases on my box too...
The only thing out of the ordinary might be that mt R is 3.0.0 and when I
load Rcpp I get "le package ‘Rcpp’ a été compilé avec la version R 3.0.1 "
Regards
2013/7/19 stat quant
> Right 2 lines were missing:
>
> C++:
>
> #include
> us
Right 2 lines were missing:
C++:
#include
using namespace Rcpp;
//[[Rcpp::export]]
void bug(DataFrame df){
DatetimeVector dt = df["dt"];
}
R:
library("Rcpp")
sourceCpp("rcpp2.cpp")
df <-
data.frame(x=c(1L,NA,2L), dt=as.POSIXct(c(1L,NA,2L),origin='1970-01-01'))
print(df)
bug(df)
##here R crash
On 19 July 2013 at 14:05, stat quant wrote:
| Hello list, I might have found a bug, would you mind checking it too?
No, you didn't. See below.
| In R:
|
| library("Rcpp")
| sourceCpp("rcpp.cpp")
| df = data.frame(x=c(1L,NA,2L), dt=as.POSIXct(c(1L,NA,2L),origin='1970-01-01'))
|
| df
| x
Hello list, I might have found a bug, would you mind checking it too?
In R:
library("Rcpp")
sourceCpp("rcpp.cpp")
df = data.frame(x=c(1L,NA,2L),
dt=as.POSIXct(c(1L,NA,2L),origin='1970-01-01'))
df
x dt
1 1 1970-01-01 00:00:01
2 NA
3 2 1970-01-01 00:00:02
In