Re: [Rd] [xts, quantmod] segfault probelm when I work with memcpy function

2010-09-10 Thread Daniel Cegiełka
You're right Simon. 'open' is so common name.. and it's probably used in some other part of R. I reneme it's from "open" to "open1" and now it works without segfaults. Thanks, daniel W dniu 10 wrze¶nia 2010 20:52 u¿ytkownik Simon Urbanek < simon.urba...@r-project.org> napisa³: > Daniel, > > I do

Re: [Rd] [xts, quantmod] segfault probelm when I work with memcpy function

2010-09-10 Thread Daniel Cegiełka
W dniu 10 września 2010 20:32 użytkownik Brian G. Peterson napisał: > Daniel, > > I haven't tried your example, but I wonder why you aren't using C accessor > methods defined by xts itself or at least derived from the significant > amounts of C code in xts. > > For example, your test code seems to

Re: [Rd] [xts, quantmod] segfault probelm when I work with memcpy function

2010-09-10 Thread Brian G. Peterson
Daniel, I haven't tried your example, but I wonder why you aren't using C accessor methods defined by xts itself or at least derived from the significant amounts of C code in xts. For example, your test code seems to bear a close resemblance in principle to coredata.c, but you don't appear t

[Rd] [xts, quantmod] segfault probelm when I work with memcpy function

2010-09-10 Thread Daniel Cegiełka
Hi, I work with SEXP C code and with xts and quantmod packages. I try to touch how xts internal works. So we have R session and: > ls() character(0) > getSymbols('AAPL') # quantmod package [1] "AAPL" > ls() [1] "AAPL" > str(AAPL) An ‘xts’ object from 2007-01-03 to 2010-09-09 containing: Da