Check out example codes for "rmarkdown how to load workspace". It will help you in understanding the concepts better.

Code Example 1

library(rmarkdown)
render('your_file.Rmd')

Learn ReactJs, React Native from akashmittal.com