Example #1
0
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)
	}
}
Example #2
0
func (r RScript) Remove() {
	script := r.WrapperPath()
	log.Println("Deleting", script)
	utils.Cleanup(script)
}