Man pages for skranz/codeUtils
Helper functions for parsing and classifying R code. Useful for domain specific languages.

call.sizeFind the number of functions and variables (counting...
count.variablesCount all variables appeareances of each variable in a call...
extract.var.with.indexextracts from a call expression its variable and its index
find.funsFind all function calls from a call or expression object
find.global.varsFind all globale variables in a function
find.multiple.variablesFind all variables from a call or expression object. If a...
find.variablesFind all variables from a call or expression object
get.lhsget lhs of an assignment
get.rhsget rhs of an assignment
is.assignmentcheck if a call is an assignment
make.callCreates a call with name name and arguments in arg.list
recursively.replaceRecursively replace elements of a call or list
strip.parenthesesstrip a call object from outer parentheses
substitute.callsubstitutes in a call object x (works like substitute2 in...
subst.varSubstitute a variable or a symbol in the expression by subs
skranz/codeUtils documentation built on Oct. 16, 2019, 11:37 p.m.