Creates a string that represents a function call based on an argument list.

funCode(funName, args)

Arguments

funName

Name of the function to call in the string.

args

a named, partly named or unnamed list containing the parameters for the function. Supported types are logical, numeric and character. Entries of NULL, NA, "" and "NA" will be ignored.

Value

A character vector of length one

Examples

args <- list(dat = "dt", m = "u", xlab = c("kja", "jsak", "saj"), z = 1, u = NULL, r = TRUE) funCode("myFunction", args)
#> [1] "myFunction(dat='dt', m='u', xlab=c('kja','jsak','saj'), z=1, r=TRUE)"