Defines functions UseTemplate

Documented in UseTemplate

UseTemplate = function(file, find=NULL, replace=NULL){
TXT = readLines(system.file(paste0("Templates/", file), package="BrailleR"))
for(i in 1:length(replace)){
TXT = gsub(find[i], replace[i], TXT)
return(paste0(TXT, collapse="\n"))

Try the BrailleR package in your browser

Any scripts or data that you put into this service are public.

BrailleR documentation built on Aug. 10, 2018, 5:04 p.m.