Skip to content
Prev 23342 / 63424 Next

apropos changes in r-devel: intended feature or bug?

DeepS> The old apropos started with: if
DeepS> (!is.character(what)) what <-
DeepS> as.character(substitute(what))

DeepS> The new one has:

DeepS> if (character.only) stopifnot(is.character(what))
DeepS> else what <- as.character(substitute(what))

DeepS> i.e., the check for is.character(what) is
DeepS> missing. This has the effect that 'what' can no
DeepS> longer be a character string generated by a function
DeepS> call unless 'character.only = TRUE'. I don't think
DeepS> this was intended; the change makes previously valid
DeepS> use invalid and I can't think of a situation where it
DeepS> is useful.
I would actually prefer if we only had standard evaluation for apropos()
and find().

(I understand we cannot do this for library() and help().)

-k