[R] require() is not giving TRUE / FALSE statements ?

Duncan Murdoch murdoch at stats.uwo.ca
Tue Mar 10 21:58:09 CET 2009

On 10/03/2009 4:40 PM, Wacek Kusnierczyk wrote:
> 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'.

It does.

Duncan Murdoch

More information about the R-help mailing list