Re: [Rd] R_alloc segfaults

2008-01-19 Thread Prof Brian Ripley
You can't call arbitrary R entry points from a standalone C program without initializing R -- you have not intialized the memory allocator here. See 'Writing R Extensions' for various ways to embed R in your own program. On Sat, 19 Jan 2008, Markus wrote: > I want to write a little stand-alon

[Rd] R_alloc segfaults

2008-01-19 Thread Markus
I want to write a little stand-alone C program that calls R_alloc, but I get a segmentation fault: int main(int argc, char** argv){ double* d = (double *)R_alloc(2, sizeof(double)); // <- segmentation fault! return 0; } gdb reveals that sizeof(double) evaluated to 0: > R_alloc (nelem=2, elt

Re: [Rd] Updating library

2008-01-19 Thread Gabor Grothendieck
Ideally one could just choose the packages | update menu and it would just work. Possibilities include updating packages into the private library if they otherwise fail to install or providing an error message on what to do. On Jan 19, 2008 9:13 AM, Uwe Ligges <[EMAIL PROTECTED]> wrote: > hits=-

Re: [Rd] Updating library

2008-01-19 Thread Uwe Ligges
hits=-2.6 tests=BAYES_00 X-USF-Spam-Flag: NO Peter Dalgaard wrote: > Prof Brian Ripley wrote: >> You need to use 'Run as admininistrator' for just the session updating >> those packages (assuming you installed R with administrator privileges and >> are running it without: you did not say). >>

Re: [Rd] Updating library

2008-01-19 Thread Gabor Grothendieck
Thanks. That did it. On Jan 19, 2008 2:19 AM, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > You need to use 'Run as admininistrator' for just the session updating > those packages (assuming you installed R with administrator privileges and > are running it without: you did not say). > > This is

Re: [Rd] Updating library

2008-01-19 Thread Peter Dalgaard
Prof Brian Ripley wrote: > You need to use 'Run as admininistrator' for just the session updating > those packages (assuming you installed R with administrator privileges and > are running it without: you did not say). > > This is covered in rw-FAQ Q2.24. > > I only have WINE to hand here and