[R] require() is not giving TRUE / FALSE statements ?
Waclaw.Marcin.Kusnierczyk at idi.ntnu.no
Tue Mar 10 22:03:16 CET 2009
Duncan Murdoch wrote:
> 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
> It does.
indeed, though not where wolfgang quotes it above, hence my suggestion.
sorry, my fault, should have checked.
More information about the R-help