I created a rmarkdown html document to share code from an analysis in R. I'd like to include the data as well, but I am not sure of the most convenient way (for the recipient) of providing data. I can embed a CSV as a URI data scheme like this:
<a download="HUGEvirus.csv" href="`r sprintf('data:text/csv; base64,%s', encoded)`">Download data as CSV</a>
or provide an HTML table that could range from raw to fancy:
```{r echo=FALSE}
knitr::kable(iris)
```
I am sure there are other options as well. Assuming the dataset has similar dimensions to datasets::iris, how can I share a dataset that:
-is accessible from most platforms/software
-can be easily read into R
-can be packaged with rmarkdown document containing code ie single file to share
-is the smallest file size
What if dimensions of the dataset are 100x larger?