assign_defaults: Set function arguments to defaults

Description Usage Arguments Details

View source: R/assign_defaults.R

Description

Set arguments for a function to their default values in the global environment. The addin takes fun from current text selection.

Usage

1
2
3

Arguments

fun

A function object or a character string naming the function. See formals for details.

Details

The goal is to make it easier to walk through the function body as top-level code for development and debugging. Arguments with no defaults and ... are silently ignored. In order for this to work, the function needs to be defined through one of these methods:


jennybc/jadd documentation built on Sept. 27, 2020, 10:35 a.m.