R Markdown- How to run a markdown file(.Rmd) from an R script(.R)?

There are situations when you would want to generate an R markdown file for a list. (e.g. – performance report for a number of sales people).

In this scenario you can run your markdown script (.rmd) from a R script(.R) in the following way-

R script

Note that person is the variable you can use  in the rmd_file.Rmd file.

You can see more options from the Render function here.