Commit ab2c7abd authored by Holger Brandl's avatar Holger Brandl

fixed regex issue when createing report name

parent b303fbf8
......@@ -138,7 +138,7 @@ knitr::opts_knit$set(
reportName=opts$out
if(is.null(reportName)){
reportName=str_replace(basename(r_script), ".R", "")
reportName=str_replace(basename(r_script), ".R$", "")
}
rmarkdown::render(input=tmpScript,output_file=paste0(reportName, ".html"),
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment