I am getting errors in using inline Code in RMarkdown and would like some guidance as to what I am doing wrong
I am on Windows with Default Text Encoding = "UTF-8" under Global Options > Code > Saving
I copied the code from Inline Code and also tried the instructions in 6.4.5 R code in-line in RMarkdown
Base R comes with many functions for generating colors. The code below demonstrates the r colorFunc function.
I get the error code
Error: unexpected symbol in "Base R"
I also tried these
"There are "backtick" r nrow(cars) "backtick" included in this report"
Output: [1] "There are r nrow(cars) included in this report"
'There are r nrow(cars) included in this report'
Output: [1] "There are r nrow(cars) included in this report"
Preview in Viewer shows
"There are r nrow(cars) included in this report"
Thanks in advance,