Parse String for Prototype Functions
A string can contain any number of prototype functions, and this function will find them and replace them with the actual R code.
parse_patterns(cfg, str)
cfg
: ubiquity system objectstr
: stringString with the prototype functions replaced