-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
quarto_render()
throws an uninformative error when output
is an absolute path
#126
Comments
This is thrown from Quarto itself. Are you suggesting this error message is unclear (in which case this is to solve in Quarto directly) or that we should add a check in this R package so that we stop early in such case as Quarto does not support this
Yes this is it. Context at quarto-dev/quarto-cli#2440 (and probably quarto-dev/quarto-cli#2266 for the initial thing that #2440 was trying to fix) |
Sorry, to be clear I meant that
Maybe And thanks for the context links! |
Thanks for clarification ! |
I went with adding a message to set |
In
renderthis
we do something that's equivalent toquarto_render("slides.qmd", output = tempfile(fileext = ".html"))
. (Sidenote: this certainly worked at some point, but is now failing.)By default, in this scenario, the error will read:
but with
quiet = FALSE
we uncover the underlying error (the message it uncovers is, honestly, a bit confusing).Edit: actually I realized our situation was slightly more nuanced. The temp file isn't in a different directory, but rather pointed to a location adjacent to the source
input
. Maybequarto render
previously allowed this scenario and is now more strict? Here's a better pseudo-reprex:The text was updated successfully, but these errors were encountered: