I have an app to aloter the params argument in an Rmd file and then download said rmd file using the shiny app. Where do I save the rmd file and how do I tell shiny where to look?
For the path you are using, the Rmd file should be in the root folder of your app (the same where the app.R file is located).
Doing this, especially on a Shiny app is a bad idea, the app is going to fail on deployment.
A better workflow would be to create a project for your app, that way you don't need to manually set the working directory.
Thanks for the response andresrcs. So when I click generate report it opens a file explorer and asks me to save a file called report but nothing is generated. In the console I get the following error:
Listening on http://127.0.0.1:5494 Warning in normalizePath(path.expand(path), winslash, mustWork) : path[1]="report.Rmd": The system cannot find the file specified Warning: Error in abs_path: The file 'report.Rmd' does not exist. [No stack trace available]
Are you still manually setting the working directory? The issue is self explanatory, Shiny is not being able to find report.Rmd where you are saying it is.