rstudio / pagedown

Paginate the HTML Output of R Markdown with CSS for Print
https://pagedown.rbind.io
Other
892 stars 128 forks source link

Test if the PDF is writable in advance, and `stop()` early if it is not. #297

Closed cderv closed 2 years ago

cderv commented 2 years ago

From the feedback above, I think we should test if the PDF is writable in advance, and stop() early if it is not. Otherwise the error message is too obscure.

Originally posted by @yihui in https://github.com/rstudio/pagedown/issues/124#issuecomment-1261504472