Cannot download PDF reportin


I can generate a PDF report from some charts/analysis locally, but not in

Logs below:

2019-04-17T17:50:32.353094+00:00 shinyapps[872391]: processing file: report.Rmd
2019-04-17T17:50:32.411084+00:00 shinyapps[872391]: 
  |                                                                 |   0%
  |.                                                                |   1%
2019-04-17T17:50:32.411285+00:00 shinyapps[872391]:   ordinary text without R code
2019-04-17T17:50:32.411286+00:00 shinyapps[872391]: 
2019-04-17T17:50:32.411717+00:00 shinyapps[872391]: 
  |.                                                                |   2%
2019-04-17T17:50:32.413412+00:00 shinyapps[872391]: label: setup (with options) 
2019-04-17T17:50:32.415662+00:00 shinyapps[872391]: List of 1
2019-04-17T17:50:32.416463+00:00 shinyapps[872391]: 
2019-04-17T17:50:32.476648+00:00 shinyapps[872391]: 
  |..                                                               |   3%
2019-04-17T17:50:32.416433+00:00 shinyapps[872391]:  $ include: logi FALSE
2019-04-17T17:50:32.476702+00:00 shinyapps[872391]:   ordinary text without R code
2019-04-17T17:50:32.477801+00:00 shinyapps[872391]: Quitting from lines 39-40 (report.Rmd) 
2019-04-17T17:50:32.476703+00:00 shinyapps[872391]: 
2019-04-17T17:50:32.477871+00:00 shinyapps[872391]: 
2019-04-17T17:50:32.479723+00:00 shinyapps[872391]: Warning: Error in setwd: cannot change working directory

Are you setting the working directory with an absolute path in your code? Could you make a minimal REPRoducible EXample (reprex) about your issue?
Here is a very useful guide about how to make a reprex for a shiny app

Solved, entirely my bad :slight_smile: I had an orphan "setwd" on knitr::options.

If your question's been answered (even by you!), would you mind choosing a solution? It helps other people see which questions still need help, or find solutions if they have similar problems. Here’s how to do it: