-
DescriptionI recently made a blog with Quarto that works well for my needs. Until now I've just used toy data but I would like to be able to include a larger dataset. I want the reader to be able to use the embedded data to run the code for themselves, without me linking to it from my Dropbox or something similar. I read about
I've only tested this locally and the latter works. I don't know how to test this live without uploading a draft (and if I include draft = true in the YAML I can't seem to preview it anyway) Thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Code is evaluated at rendering, only the parts that is part of the output will remain. Observable is evaluated after rendering and in the browser. So, the former only needs the csv locally when rendering while the latter will need it everytime you open the HTML. I suggest for you to get acquainted with what Observable.js is compared to R/Python/etc. |
Beta Was this translation helpful? Give feedback.
You cannot copy data from file with neither approaches.
This is similar as in just using an R script reading data. If you don't share the data alongside the script, the script won't work, no matter you copy/paste the content of the R script.
Make a link to download load the data hosted where you want
[Download the data](path/or/url/to/file.csv)
.