createStringFunction: Helper of superApply

Description Usage Arguments Value Examples

View source: R/superApply.R

Description

Takes a function name and a character vector to be put inside independent calls of the function.

Usage

1
createStringFunction(fun, inside = NULL)

Arguments

fun

character - the fucntion name as a string

inside

character vector - the items to put inside function

Value

character vector - of the form [1]"fun(inside[1])" ... [n]"fun(inside[n]))" where n is the lengh of inside. If inside is NULL it returns an empty string

Examples

1
2
3
4
5
createStringFunction("library", c("ggplot2", "dyplr")) 
#[1] "library(ggplot2)" "library(dyplr)"

createStringFunction("library") 
#[1] ""

pablo-gar/rSubmitter documentation built on Jan. 26, 2020, 2:08 a.m.