Maybe this is a stupid question, but I couldn't find an answer and I'm newbie using r-markdown.
I created a script in R for some statistical calculations and graphics. After finishing the script, my tutor told me it would be right that R script generates a report in pdf.
I tried to export the result with different methods inside .R file but finally I discovered that the best way to create a report was r-markdonw.
However, this R-script is to be used in a bash file to automate the process... Example:
- Java program generates files
- R script takes these files and do some statistical calculations.
- Generate a clear report in pdf or html.
My question is... How can I run a .RMD file in bash script ?
Edit:
Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_a
Rscript -e 'rmarkdown::render(…)'Error: pandoc version 1.12.3 or higher is required and was not found (see the help page ?rmarkdown::pandoc_available).