set.args: Set a list of arguments.

View source: R/utils.R

set.argsR Documentation

Set a list of arguments.

Description

Function to set a list of arguments without having to remove commas. Useful for troubleshooting. For example, if attempting to run a function (particualrly one with many arguments) line by line, set.args can be used to set a list of arguments in one go, by copying a comma-separated set of arguments from an existing function call or a new call to args(fn).

Usage

set.args(args, envir = sys.frame(which = 0L))

Arguments

args

A named list of arguments.

envir

The environment in which these arguments will set.

Details

Please note that unless the envir argument is changed from its default (sys.frame), any arguments set with set.args will over-ride any values currently assigned to those names.

Author(s)

Caitlin Collins caitiecollins@gmail.com


caitiecollins/treeWAS documentation built on March 9, 2024, 3:15 p.m.