extract_loopargs: Get the arguments of a for loop or of lapply

View source: R/rstudio-toggle_subsections.R

extract_forR Documentation

Get the arguments of a for loop or of lapply

Description

Get the arguments of a for loop or of lapply

Usage

extract_for(textline)

extract_apply(textline)

extract_loopargs(textline)

Arguments

textline

Line of code

Value

list(loopvar = "loopingvariable", loopval = "list:ofValues")

Author(s)

Daniel Lill (daniel.lill@intiquan.com)

Examples

extract_loopargs("lapply(names(alpha), function(x) 1)")

dlill/conveniencefunctions documentation built on Sept. 30, 2022, 4:40 a.m.