Probably a basic problem, but I could not find the answer anywhere. I am getting started with rmarkdown with runtime: shiny, but when I click on Run Document I get the Error
Error: unexpected symbol in "rmarkdown::run('C:/Luca\'s Documents/Statistics/Use of R/Lucas R study.Rmd', shiny_args = list(launch.browser = FALSE), auto_reload = FALSE, dir = 'C:/Luca's" Execution halted
The problem is clearly the quote in the path (folder "Luca's Documents"), because if I move the file to another path all works. However, for several reasons I cannot work in another path, nor can I rename the path.
Interestingly, I see that the first quote is escaped automatically with \, but the second one in the argument to
dir is not. That's why the execution stops.
Is there a way to get RStudio and markdown to work with paths with special characters, or to compel RStudio to also escape that second occurrence of the backquote?