Listening on http://127.0.0.1:3326
Warning in normalizePath(path.expand(path), winslash, mustWork) :
path[1]="C:\Users\edonnea\AppData\Local\Temp\RtmpAnClmt/report.Rmd": The system cannot find the file specified
Warning: Error in abs_path: The file 'C:\Users\edonnea\AppData\Local\Temp\RtmpAnClmt/report.Rmd' does not exist.
[No stack trace available]
Is this an issue with the "/" that I see in the abs_path and how do I fix that?
My problem here is really that I don't understand what is happening with the tempdir() function, I can look this up so no problem. I have updated my code as below removing the file.copy piece and now it is working for me:
Does it work locally but not when published to shinyapps.io?
Just leave the code on https://shiny.rstudio.com/articles/generating-reports.html exactly as it is. The app makes a copy of report.Rmd into tempdir(), you don't need to worry about where that it. I would not use getwd(). See the comment in the code.
I would add library(shiny) at the top. Make sure the report.Rmd file is saved in the root project directory.
When you publish the app to shinyapps.io, make sure you include the file report.Rmd.