Open coatless opened 3 months ago
The idea here is to use something like downloadthis or quarto-downloadthis to embed the data set directly in the document while providing a download link. It may be advantageous to then load the data into webR on document load.
downloadthis
quarto-downloadthis
For example, the following code makes available the mtcars data set:
mtcars
This code be handled perhaps with a modified ojs_define() or Garrick's new base64 shortcode extension.
The idea here is to use something like
downloadthis
orquarto-downloadthis
to embed the data set directly in the document while providing a download link. It may be advantageous to then load the data into webR on document load.downloadthis
: https://cran.r-project.org/web/packages/downloadthis/vignettes/downloadthis.htmlquarto-downloadthis
: https://github.com/shafayetShafee/downloadthisFor example, the following code makes available the
mtcars
data set:Example HTML from `downloadthis` to download a single data set
````html ````This code be handled perhaps with a modified ojs_define() or Garrick's new base64 shortcode extension.