get_fn_args: get_fn_args

Description Usage Arguments Value

Description

This function takes a string of arguments as if they were written for a function it replaces commas with ; where appropriate and executes the code Designed to easily grab several arguments from a selection. Note that this works by looking for matching brackets and inverted commas If for some reason you have hanging commas and speech marks nested within each other this could cause issues!

Usage

1
2
get_fn_args(string_select = NULL, valid_only = TRUE,
  return_string = FALSE)

Arguments

string_select

String to be read and given to the console

valid_only

Will only output code which uses = or <-

return_string

If True, returns a string of arguments, otherwise outputs directly to console. False by default

Value

The console will run the provided string split by ; where commas are, or return the string if return_string = T


kieranjmartin/getfunctionargs documentation built on May 23, 2019, 7:03 p.m.