Closed aronatkins closed 1 year ago
This is fixed in https://github.com/rich-iannone/quarto-email/commit/41da8d5bc858e66d4e19248e15d53c4f8c4a3b9b, where all declared attachment paths are filtered (checking for existence before writing an internal Lua table). There is additional safeguarding when copying files to the project dir (again, checking for file existence).
After the change, the Quarto error is no longer present and the example document renders correctly on Connect (main document and email sent to myself). Other documents (with correctly declared attachments) rendered fine as well.
Given that this is solved, I'll close the issue. But definitely re-open if some edge case is caught.
When a named attachment does not exist (by user error or because that file is conditionally generated), this filter produces an error.
An example document:
When rendered, the following error is produced:
Using Quarto 1.3.433 (distributed with recent RStudio daily builds, but shows errors both inside and outside RStudio).