I am executing the following line in my R Markdown code chunk:
RStudio.Version()$version
When I run the knit on the R Markdown to create a Word document, I am getting the following error message:
Error in RStudio.Version(): could not find function "RStudio.Version"
When I run this function RStudio.Version() in RStudio console, I am getting the version and the function runs, but not with knitting when I run R Markdown.
Does anyone have any solution to this?