Description Usage Arguments Examples
To use a dubious syntax in a package, use this function in the definition of .onAttach
1 | register_dubious_syntaxes(syntaxes)
|
syntaxes |
a character vector of the syntaxes to support |
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)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.