Skip to content
Back to formatted view

Raw Message

Message-ID: <49B6D044.2070103@idi.ntnu.no>
Date: 2009-03-10T20:40:36Z
From: Wacek Kusnierczyk
Subject: require() is not giving TRUE / FALSE statements ?
In-Reply-To: <49B6CDCC.6060001@stats.uwo.ca>

Duncan Murdoch wrote:
> On 10/03/2009 4:15 PM, Wolfgang Raffelsberger wrote:
>> Dear list,
>>
>> ?require says :
>> "... |require| is designed for use inside other functions; it returns
>> |FALSE| and gives a warning (rather than an error as |library()| does
>> by default) if the package does not exist ..."
>>
>> However when I run the following code I don't get any TRUE / FALSE
>> statements (but the warning only).
>
> You never printed the value, so you didn't see it.  (It was returned
> marked invisible, i.e. not for printing.)
>

maybe it would help if the man page said 'returns invisibly' instead of
'returns'.

vQ