-
DescriptionI am trying to use R and Python in the same quarto doc. But Here is my quarto doc:
Result of quarto background job:
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
I can't try you example because you are using data that is not available to us. So let me just comment on your question with some details hoping it helps. Please to provide reproducible example if you want further help.
This is the error I see in your OP:
This is related to something incorrectly loading when running the code with reticulate in a knitting context. You should try to isolate the code that fails in this last I think the issue is related to reticulate R package. You can try in R Markdown or knitr directly to confirm Quarto is not involved.
This could help debug.
All cells runs individually in python or with reticulate ? Do they run interactively in RStudio IDE ?
This is expected. With engine Jupyter, a single kernel can be run, and so R cells are not executable. knitr engine is specific for that because of support of reticulate for running Python cells.
Not sure it is related to Quarto, but still useful to update to latest pre-release version 1.4 currently Release Candidate: https://quarto.org/docs/download/ Hope it helps |
Beta Was this translation helpful? Give feedback.
I can't try you example because you are using data that is not available to us.
So let me just comment on your question with some details hoping it helps. Please to provide reproducible example if you want further help.
This is the error I see in your OP:
This is related to something incorrectly loading when running the code with reticulate in a knitting context.
You should try to isolate the code that fails in this last
pyclean
chunk to run with reticulate.I think the issue…