Re: [Rd] Aliasing a function

2008-02-23 Thread hadley wickham
On Sat, Feb 23, 2008 at 5:52 PM, Gabor Grothendieck <[EMAIL PROTECTED]> wrote: > I assume he wants to be able to change the > formals although its confusing since the example > uses the same formals in both cases. Yes, that was an important point that I forgot to mention! Thanks for the pointer

Re: [Rd] Aliasing a function

2008-02-23 Thread Gabor Grothendieck
I assume he wants to be able to change the formals although its confusing since the example uses the same formals in both cases. On Sat, Feb 23, 2008 at 6:32 PM, John Fox <[EMAIL PROTECTED]> wrote: > Dear Hadley, > > Why not just f <- g ? > > Regards, > John > > >

Re: [Rd] Aliasing a function

2008-02-23 Thread Gabor Grothendieck
formals can be used like this: f <- g formals(f) <- pairlist(a=1,b=2,c=3) On Sat, Feb 23, 2008 at 5:40 PM, hadley wickham <[EMAIL PROTECTED]> wrote: > A simple way to alias a function is to do : > > g <- function(a = 1, b = 2, c = 3) a + b * c > f <- function(...) g(...) > > but formals (etc) is

Re: [Rd] Aliasing a function

2008-02-23 Thread John Fox
Dear Hadley, Why not just f <- g ? Regards, John John Fox, Professor Department of Sociology McMaster University Hamilton, Ontario, Canada L8S 4M4 905-525-9140x23604 http://socserv.mcmaster.ca/jfox > -Original Message- > From: [EMAIL PROTECTED] [mailto

[Rd] Aliasing a function

2008-02-23 Thread hadley wickham
A simple way to alias a function is to do : g <- function(a = 1, b = 2, c = 3) a + b * c f <- function(...) g(...) but formals (etc) is no longer very helpful. Is there an easy way to programmatically create: f <- function(a=1, b=2, c=3) g(a=a, b=b, c=c) This comes up in ggplot2 where I alias

Re: [Rd] print.logLik

2008-02-23 Thread roger koenker
Commas would be fine especially if there were spaces too, as in your example. I was just trying to suggest something mimimalist ;-) Cheers, Roger On Feb 23, 2008, at 11:21 AM, Martin Maechler wrote: >> "rk" == roger koenker <[EMAIL PROTECTED]> >>on Sat, 23 Feb 2008 10:34:41 -0600 w

Re: [Rd] print.logLik

2008-02-23 Thread Martin Maechler
> "rk" == roger koenker <[EMAIL PROTECTED]> > on Sat, 23 Feb 2008 10:34:41 -0600 writes: rk> I have a vector of logLik values that I'd like to return and it would rk> be nice rk> if the the print method didn't run them together. Could I make a plea rk> for rk>

[Rd] patch: two minor debugging-related pointer protection stack issues (PR#10832)

2008-02-23 Thread jbrzusto
Full_Name: John Brzustowski Version: R-devel trunk and R-2.4.0 OS: linux Submission from: (NULL) (76.10.152.79) Here are two minor potential issues in pointer protection stack (PPS) code which could arise in debugging R with valgrind. Only the second could possibly cause a problem in normal use

[Rd] print.logLik

2008-02-23 Thread roger koenker
I have a vector of logLik values that I'd like to return and it would be nice if the the print method didn't run them together. Could I make a plea for using sep = " ", rather than sep = "" in print.logLik? url:www.econ.uiuc.edu/~rogerRoger Koenker email [EMAIL PROTECTED

Re: [Rd] level of mutability for the type of a SEXP

2008-02-23 Thread Laurent Gautier
2008/2/22, Prof Brian Ripley <[EMAIL PROTECTED]>: > On Tue, 19 Feb 2008, Laurent Gautier wrote: > > > Dear list, > > > > I am writing C code to interface with R, and I would like to know the > > level of mutability for the type of a SEXP. > > > > I see that there is a macro/function TYPEOF(),

Re: [Rd] Calling R_PreserveObject from embedded R

2008-02-23 Thread Laurent Gautier
> Hello. This is my first post to the list, so first I'd like to thank > everybody for making and mantaining such a great product as R. > I'm writting a native binding to R from Dolphin Smalltalk. I've followed up > the examples of the documentation showing how to run R embedded, and I got > i

Re: [Rd] .net and R

2008-02-23 Thread Prof Brian Ripley
On Sat, 23 Feb 2008, Yuan Jian wrote: > Hi, > is it possible to call R functions from visual studio .net such as c#? Yes. [If you want to know 'how', please study 'Writing R Extensions'.] > - > > [[alternative HTML version deleted]] Please study the posti

[Rd] .net and R

2008-02-23 Thread Yuan Jian
Hi, is it possible to call R functions from visual studio .net such as c#? - [[alternative HTML version deleted]] __ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-de