Hello,
I get the following error when trying to run an R Report:
Error executing command
javax.script.ScriptException: javax.script.ScriptException: An error occurred when running the script 'script.R', exit code: 1).
My script is the following:
knitr::opts_chunk$set(echo=FALSE, cache=FALSE, comment=FALSE, comments = "", warning=FALSE, eval = TRUE, encoding = "native.enc")
#knitr::opts_chunk$get();
knitr::pandoc('script.Rmd', format='html')
currentdir <- getwd()
assign("html_filename", paste(currentdir, "/script.html", sep=""))
assign("out_filename", paste("/nip/NRG_Samples/@files/Reports/GenotypingResults_CNR1rs2023239_DRD3rs6280/Report_GenotypingResults_CNR1rs2023239_DRD3rs6280_", format(Sys.time(), "%Y-%m-%d_%H:%M:%S"), ".html", sep=""))
#list.files(path = ".", pattern = NULL, all.files = FALSE,
# full.names = FALSE, recursive = FALSE,
# ignore.case = FALSE, include.dirs = FALSE, no.. = FALSE)
file.copy(from = html_filename, to = out_filename)
system("rm script.* *.tsv")
#system("rm cache/*.*")
#list.files(path = ".", pattern = NULL, all.files = FALSE,
# full.names = FALSE, recursive = FALSE,
# ignore.case = FALSE, include.dirs = FALSE, no.. = FALSE)
<html>...</html>
I look forward to your suggestions.
Thanks,
Marcia