[Rd] Behaviour of exists(x) for length(x) > 1
Hugh Parsonage
hugh@p@r@on@ge @ending from gm@il@com
Mon Oct 15 12:04:31 CEST 2018
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
More information about the R-devel
mailing list