Re: [Rd] Getting param names of primitives

2007-07-10 Thread miguel manese
Thanks! Worked like a charm. Regards, M. Manese On 7/11/07, Prof Brian Ripley <[EMAIL PROTECTED]> wrote: > > formals(args(log)) > $x > > > $base > exp(1) > > gives what formals(log) used to. > > On Wed, 11 Jul 2007, miguel manese wrote: > > > Hi, > > > > In the latest R this does not work anymore

Re: [Rd] Getting param names of primitives

2007-07-10 Thread Prof Brian Ripley
> formals(args(log)) $x $base exp(1) gives what formals(log) used to. On Wed, 11 Jul 2007, miguel manese wrote: > Hi, > > In the latest R this does not work anymore > > args <- formals(log) > > because log is primitive. Is there any other way to get the argument > list? I just need the name of

[Rd] Getting param names of primitives

2007-07-10 Thread miguel manese
Hi, In the latest R this does not work anymore args <- formals(log) because log is primitive. Is there any other way to get the argument list? I just need the name of the parameter to display some error message about it. I have looked at args() but I can't find anything to extract the argument n

Re: [Rd] BLAS / LAPACK version information from within R-session?

2007-07-10 Thread Jason Riedy
And Brian Ripley writes: > I know of no way to ask a BLAS dynamic library what version it > is. Tinkering with the BLAS interface hasn't fared so well, but LAPACK 3.1 added an ILAVER subroutine that returns the major, minor, and patch level versions for LAPACK itself. >> An obvious application co

Re: [Rd] [R] How to preserve data across function calls in a library package

2007-07-10 Thread Saptarshi Guha
Hi, Some progress: I am using SEXP retty; book=Calloc(1,int); *book=10; PROTECT(retty=R_MakeExternalPtr(book,R_NilValue,R_NilValue)); then UNPROTECTING and returning retty. In a another function, foo(SEXP s){ int* f=

[Rd] How to preserve data across function calls in a library package

2007-07-10 Thread Saptarshi Guha
Hi, I am writing an R package with two functions in C++. So far everything works. Now, i would like to write a third function which would use a pointer (it is a pointer to a class object) created by first function. I tried placing this pointer outside of the function defi

[Rd] Plot dies with memory not mapped (segfault) (PR#9785)

2007-07-10 Thread cbaenzig
Full_Name: Clay B Version: 2.5.0 (2007-04-23) OS: Solaris Nevada Build 55b Submission from: (NULL) (65.101.229.198) I find that running this script causes R to segfault reliably. However, running just for one system at a time (modifying the for loop updating iter to run just for a system at a tim