-
-
Notifications
You must be signed in to change notification settings - Fork 21
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
[Bug]: chunk fails to run on context: setup #114
Comments
This is a duplicate of #105 and #88 on the notion of the
From v0.3.8 onward, we added a new feature to autoload R packages specified in https://quarto-webr.thecoatlessprofessor.com/qwebr-meta-options.html#autoload-packages |
@jimjam-slam I reworked a bit on the non-interactive cells in #120. They should now respect the Care to give it a go and let me know if something else is amiss? quarto add coatless/quarto-webr@cell-state-manager |
I'll give it a spin today! |
@jimjam-slam thanks; please make sure to re-pull if you already grabbed a copy of dev as I pushed one more fix onto that branch. |
Can confirm it's working great when I pull the cell-state-manager branch! Thanks very much—I'll be keen to see this hit main! |
@jimjam-slam excellent; I appreciate it! After I clean up how non-interactive cells are displayed visually, this branch will likely hit main in the next 24 hours. Main changes for the visualization relate to state changes for non-interactives, e.g. loading webr ... , hidden cells executing, processing this cell, deleting status if Still have a few more tweaks related to introducing a new toolbar above interactive cells. c.f. #91 . |
Nice! I wrote up a blog post while exploring the new |
Bug description
This could potentially be related to #105 (although I'm not in a position to say for sure), but in the following reprex, running the second chunk fails with
Error: object 'bad_mtcars' not found
when the first chunk hascontext: setup
.If you remove
context: setup
from the first chunk and then run the two sequentially, the second runs as expected (printing the data frame).Steps to reproduce
#| context: setup
from first chunkYour environment
IDE: VSCode
OS: macOS 14.0
Here's the session info inside WebR (I was a little surprised that
tibble
anddplyr
were loaded even if I didn't run either chunk—does putting them in the YAML load them too?)Quarto check output
The text was updated successfully, but these errors were encountered: