R/PandocAll.R

Defines functions PandocAll

Documented in PandocAll

PandocAll = function(intype="docx", outtype="html"){

FileList=list.files(pattern=paste0(".",intype))

for(i in FileList){
Outfile = sub(paste0(".", intype), paste0(".", outtype),  i)
if(file.mtime(i) > file.mtime(Outfile)| !file.exists(Outfile)) {
shell(paste0('pandoc -s "', i, '" -o "', Outfile, '"'))
.FileUpdated(file=Outfile, where="in your current working directory.")
}
}
return(invisible(TRUE))
}

Try the BrailleR package in your browser

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

BrailleR documentation built on July 26, 2023, 5:46 p.m.