You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While trying to reproduce this issue, found that the work for enabling Quarto scripts (#2424) also helped on Quarto websites, with a couple items still requiring work:
Pre and Post render scripts are not automatically picked up to be added to the configuration on project inspection
Users selecting _quarto.yml as entrypoint would get an undesired outcome (unknown type project). This because quarto inspect does not work on _quarto.yml files but it is understandable that the user picks that file and by doing so the project type is explicit enough already.
I have a Quarto website project. I don’t really understand what needs to be considered the “entrypoint” in this context. I’m given my *.qmd files, my *.py pre-render script, and one rendered HTML file, but the _quarto.yml file (which is the closest option in my mental model) isn’t offered.
I want to deploy this project as source (not rendered) and include the files:
_quarto.yml
requirements.txt
index.qmd, visualize-r.qmd, visualize-py.qmd
allocation.py
This project has both R and Python package requirements.
Proceeding with the deployment workflow, it missed the pre-render allocation.py script and did not identify that the project requires R as well as Python.
The Quarto inspect output DOES say that knitr is used:
"engines": [
"jupyter",
"markdown",
"knitr"
],
I tried to guess about the [r] syntax:
[r]
version = '4.3.3'
I got an ugly error (attached).
The TOML was updated with placeholders which also violated the configuration:
[r]
version = '4.3.3'
package_file = ''
package_manager = ''
I tried to package_manager = 'none' and got a complaint when trying to deploy; I was trying to use my standard library, not renv.
😢 The deployed manifest does not indicate that Quarto needs the knitr engine and therefore does not cause Connect to install R packages.
This one is a little awkward because it doesn’t use reticulate. Instead, it uses both the knitr and jupyter engines. rsconnect could do better at detecting the need for Python in this situation.
Note: I still have package_manager = 'none' but renv was required.
See slack link for archive of project, created with:
After discussion with Jon, we'd like to try and mimic the behavior that the IDE has for quarto websites in which a subselection of the website or quarto doc is automatically changed to be the entire website or doc. It is at this post-configuration location, that the quarto utilities should be run from, which then should provide the proper functionality. This would remove the issue with Quarto as to the user picking the wrong project entrypoint.
We'll also, obviously, need to allow the selection of the _quarto.yml file as the project entrypoint.
Update (while trying to reproduce)
While trying to reproduce this issue, found that the work for enabling Quarto scripts (#2424) also helped on Quarto websites, with a couple items still requiring work:
_quarto.yml
as entrypoint would get an undesired outcome (unknown
type project). This becausequarto inspect
does not work on_quarto.yml
files but it is understandable that the user picks that file and by doing so the project type is explicit enough already.Original
From: https://positpbc.slack.com/archives/C05D7NZD52S/p1726064950810009
I have a Quarto website project. I don’t really understand what needs to be considered the “entrypoint” in this context. I’m given my *.qmd files, my *.py pre-render script, and one rendered HTML file, but the _quarto.yml file (which is the closest option in my mental model) isn’t offered.
I want to deploy this project as source (not rendered) and include the files:
This project has both R and Python package requirements.
Proceeding with the deployment workflow, it missed the pre-render allocation.py script and did not identify that the project requires R as well as Python.
The Quarto inspect output DOES say that knitr is used:
I tried to guess about the [r] syntax:
I got an ugly error (attached).
The TOML was updated with placeholders which also violated the configuration:
I tried to
package_manager = 'none'
and got a complaint when trying to deploy; I was trying to use my standard library, not renv.😢 The deployed manifest does not indicate that Quarto needs the knitr engine and therefore does not cause Connect to install R packages.
For those following along, I was able to successfully deploy with:
This one is a little awkward because it doesn’t use reticulate. Instead, it uses both the knitr and jupyter engines. rsconnect could do better at detecting the need for Python in this situation.
Note: I still have
package_manager = 'none'
but renv was required.See slack link for archive of project, created with:
My Python virtual env was in
env
.The text was updated successfully, but these errors were encountered: