func RenderRMarkdownFile(inputFile, outDir, rpkgsDir string, keep bool) { SetupRLIBSPath(rpkgsDir) rdoc := NewRDocument(inputFile, outDir) outputMD := rdoc.KnitR() RenderMarkdownFile(outputMD, outDir) if keep == false { utils.Cleanup(outputMD) } }
func (r RScript) Remove() { script := r.WrapperPath() log.Println("Deleting", script) utils.Cleanup(script) }