View source: R/simplified_formals.R
simplified_formals | R Documentation |
Extracts formals
and
formats them as an easily testable character vector
.
simplified_formals(fn)
fn |
|
A character vector
with the simplified formals.
Ludvig Renbo Olsen, r-pkgs@ludvigolsen.dk
# Attach packages library(xpectr) fn1 <- function(a = "x", b = NULL, c = NA, d){ paste0(a, b, c, d) } simplified_formals(fn1)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.