register_dubious_syntaxes: Register Dubious Syntaxes

Description Usage Arguments Examples

View source: R/register_ops.R

Description

To use a dubious syntax in a package, use this function in the definition of .onAttach

Usage

1

Arguments

syntaxes

a character vector of the syntaxes to support

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
## Not run: 
# define your syntax as you would define a normal function
`?add> {x} : {y}` <- function(x, y) x + y

# register the syntax in your .onAttach definition
.onAttach <- function(libname, pkgname) {
doubt::register_dubious_syntaxes("?add> {x} : {y}")
invisible()
}

## End(Not run)

doubt documentation built on July 2, 2020, 4:04 a.m.