safer_partialmatch: Set Safer Dollar, Arguments, and Attribute Matching

View source: R/safer_match.R

safer_partialmatchR Documentation

Set Safer Dollar, Arguments, and Attribute Matching

Description

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).

Usage

safer_partialmatch()

Value

Sets the options. Returns nothing.

See Also

tinycodet_safer

Examples


interactive()


safer_partialmatch()
data(iris)
head(iris)
iris$Sepal.Length <- iris$Sepal.Length^2
head(iris)


tinycodet documentation built on Sept. 12, 2024, 7:03 a.m.