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
In {learnr}, the results from printing data.frame output are shown as paged tables by default (using rmarkdown::paged_table(), I think)
I've tried to recreate something similar with {quarto-webr}, but something along the way isn't working, and I'm not sure what.
---title: "Testing"format: htmlengine: knitrfilters:
- webrwebr:
packages:
- rmarkdown---```{webr-r}#| context: setupprint.data.frame <- function(x, ...) { cat("This should be paged?\n") rmarkdown::paged_table(x)}``````{webr-r}# Implicit print doesn't use print.data.frame()mtcars``````{webr-r}# Explicit print does use print.data.frame(), but it's not pagedprint(mtcars)```
I don't know if it's currently possible to do this with {quarto-webr}, but it would be nice!
The text was updated successfully, but these errors were encountered:
Other hiccups relate to the meta dependencies being unable to be added to the document as we're past the render stage. Though, I think the dependencies themselves assume that the document is opened with the data embedded as the output from rmarkdown::paged_html_table() consists of a div with a script tag containing dumped data.
On {quarto-webr}'s end, we'd need the results: asis mode to avoid marking up content instead of only allowing it to pass through. c.f. #166
Ok cool cool, I'll just live with the default data.frame and tibble-based print()s. In my actual use case, I ended up showing the data frame that learners are working with using a separate, normal {r} chunk with a paged data frame, so they can still navigate the larger dataset.
Feature Description
In {learnr}, the results from printing data.frame output are shown as paged tables by default (using
rmarkdown::paged_table()
, I think)I've tried to recreate something similar with {quarto-webr}, but something along the way isn't working, and I'm not sure what.
I don't know if it's currently possible to do this with {quarto-webr}, but it would be nice!
The text was updated successfully, but these errors were encountered: