From jjonphl at gmail.com  Wed Jul 11 08:19:25 2007
From: jjonphl at gmail.com (miguel manese)
Date: Wed, 11 Jul 2007 14:19:25 +0800
Subject: [Rd] Getting param names of primitives
In-Reply-To: <Pine.LNX.4.64.0707110546480.27029@gannet.stats.ox.ac.uk>
References: <d35b9da60707102141q60586e66w88a4b991595edcd0@mail.gmail.com>
	<Pine.LNX.4.64.0707110546480.27029@gannet.stats.ox.ac.uk>
Message-ID: <d35b9da60707102319t162165abl5fdc7bd1e94d4bfe@mail.gmail.com>

Thanks! Worked like a charm.

Regards,
M. Manese

On 7/11/07, Prof Brian Ripley <ripley at stats.ox.ac.uk> 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
> >
> > 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 names from it.
> >
> > Thanks,
> > M. Manese
>
> --
> Brian D. Ripley,                  ripley at stats.ox.ac.uk
> Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
> University of Oxford,             Tel:  +44 1865 272861 (self)
> 1 South Parks Road,                     +44 1865 272866 (PA)
> Oxford OX1 3TG, UK                Fax:  +44 1865 272595
>



[Rd] Getting param names of primitives
miguel manese