From murdoch at stats.uwo.ca  Tue Feb 17 13:25:53 2009
From: murdoch at stats.uwo.ca (Duncan Murdoch)
Date: Tue, 17 Feb 2009 07:25:53 -0500
Subject: [Rd] demo enhancement
In-Reply-To: <EC8433CF-0161-4DFC-B643-6F468D24893F@epfl.ch>
References: <0F20FC28-3816-4383-BE58-9608695E8706@epfl.ch>
	<49994F9E.6030109@stats.uwo.ca>
	<EC8433CF-0161-4DFC-B643-6F468D24893F@epfl.ch>
Message-ID: <499AACD1.6020202@stats.uwo.ca>

On 16/02/2009 6:42 AM, Kjell Konis wrote:
> I put the diff here
> 
>    http://smat.epfl.ch/~konis/grabbag/demo.diff
> 
> Kjell

I've added this in R-devel, and also added "ask" at the same time.

Duncan Murdoch

> On 16 f?vr. 09, at 12:35, Duncan Murdoch wrote:
> 
>> Kjell Konis wrote:
>>> Hello,
>>>
>>> I have a package for working with Bayesian networks (RHugin - on R-
>>> Forge for those interested). It contains a function RHExample that
>>> does the same thing as the demo function in the utils package except
>>> that it does not display any output in the R console. I use it to
>>> build simple networks in the examples section of my .Rd documentation
>>> files. Anyway, I thought it would be useful if this functionality was
>>> also part of the demo function. The attached diff adds an echo
>>> argument to demo which, when set to FALSE, makes demo behave the same
>>> as my RHExample function. Please feel free to use it if you think it
>>> would be helpful.
>> Your attachment got lost, but by coincidence, I was wanting an
>> echo=FALSE argument to demo a couple of days ago.  I didn't add it  
>> yet,
>> because
>>
>> - I'd like consistency with example(), which suggests putting echo
>> ahead of verbose
>> - I'd rather not add a parameter in the middle of the list, just in
>> case someone has used positional args
>> - example() has other args not in demo(), i.e. local, setRNG, ask,
>> prompt.prefix.  Should some or all of those be added at the same time?
>>
>> Since the first two items above are contradictory, I decided this  
>> needed
>> thinking about, but I haven't taken the time to do that yet.
>>
>> Duncan Murdoch
>



[Rd] demo enhancement
Duncan Murdoch