From hugh@p@r@on@ge @ending from gm@il@com  Mon Oct 15 12:04:31 2018
From: hugh@p@r@on@ge @ending from gm@il@com (Hugh Parsonage)
Date: Mon, 15 Oct 2018 21:04:31 +1100
Subject: [Rd] Behaviour of exists(x) for length(x) > 1
Message-ID: <CAJmOi+NCLS9Y8T82AP-aE8ffkqras5j6Ce4EgpZbd5wwEYXyXg@mail.gmail.com>

It seems that exists accepts character vectors of lengths other than
one, but discards all but the first element without an error or
warning.  Is this intended?  The name "exists" is in the singular, so
it's not surprising that it only contemplates the length-one instance
but in the absence of an error or warning it may be an improvement to
mention what happens when length(x) > 1.

exists(as.character(substitute(doesntexist + absenttoo)))

Best,

Hugh



[Rd] Behaviour of exists(x) for length(x) > 1
Hugh Parsonage