Skip to contents

# Set Safer Dollar, Arguments, and Attribute Matching

Source: `R/safer_match.R`
`safer_partialmatch.Rd`

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

    if (FALSE) { # interactive()
    interactive()

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