From daniel.sabanesbove at campus.lmu.de  Mon Apr 14 21:23:59 2008
From: daniel.sabanesbove at campus.lmu.de (=?ISO-8859-1?Q?Daniel_Saban=E9s_Bov=E9?=)
Date: Mon, 14 Apr 2008 21:23:59 +0200
Subject: [Rd] promptFunctions() to handle multiple names
In-Reply-To: <48039F0B.2030808@r-project.org>
References: <48021E3B.1080000@campus.lmu.de> <48039F0B.2030808@r-project.org>
Message-ID: <4803AF4F.7030801@campus.lmu.de>

Hi John,

thanks for the pointer to promptAll()! Judging by the description
of your function, it seems to be exactly the thing I've searched for.

Well, this is yet another reason to be looking forward to your new book.
(When will it be in the stores?)

Daniel


John Chambers schrieb:
> Daniel,
> 
> Check out the promptAll() function in the SoDA package on CRAN.  
> (Because it was written as an example for my new book, it's not the 
> fanciest imaginable, but seems to work OK.)
> 
> John
> 
> 
> Daniel Saban?s Bov? wrote:
> Hi all,
> 
> I wanted to set up my first (private) R-package and wondered
> if there was a function to prompt() for multiple aliases in one Rd-file,
> e.g. to create something like the normal distribution manual page
> encompassing rnorm, dnorm,...
> 
> As I didn't find it, I modified prompt.default() and wrote a small 
> function
> to do this job, called "promptFunctions". It basically calls the helper
> ".promptFunction" for every name it gets and puts together the output
> from each function.
> 
> It would be interesting for me if such a function already existed in R
> or if something like "promptFunction" could be included in any future 
> R version.
> I think it would be used as many man pages document several functions 
> at once,
> and cutting and pasting the single prompt() files by hand could be 
> boring.
> 
> regards,
> Daniel
> 
> The Code:
>



[Rd] promptFunctions() to handle multiple names
=?ISO-8859-1?Q?Daniel_Saban=E9s_Bov=E9?=