The safer_partialmatch()
function simply calls the following:
options(
warnPartialMatchDollar = TRUE,
warnPartialMatchArgs = TRUE,
warnPartialMatchAttr = TRUE
)
Thus it forces 'R' to give a warning when partial matching occurs when using
the dollar ($) operator,
or when other forms of partial matching occurs.
The safer_partialmatch()
function
is intended for when running R interactively
(see interactive).
Examples
if (FALSE) { # interactive()
interactive()
safer_partialmatch()
data(iris)
head(iris)
iris$Sepal.Length <- iris$Sepal.Length^2
head(iris)
}