nicercode / EnvironmentalComputing

These are the R markdown files used to generate
http://environmentalcomputing.net/
Creative Commons Attribution 4.0 International
16 stars 5 forks source link

special section for datasets #6

Closed wcornwell closed 2 years ago

fontikar commented 2 years ago

Trying this solution! https://stackoverflow.com/questions/62372091/add-download-button-to-r-blogdown-website

fontikar commented 2 years ago

Wahoo it works!

fontikar commented 2 years ago

I always forget to refer to the issue number but cbf84a6 has created a dedicated section for datasets. But @dfalster has proposed a nice solution too:

If the datasets are small, people could read.csv straight from the web page, or we could provide a function to download it


read.csv("https://deploy-preview-18--brave-bose-da028a.netlify.app/data-manipulation/subsetting-data/Bats_data.csv")

download.file("https://deploy-preview-18--brave-bose-da028a.netlify.app/data-manipulation/subsetting-data/Bats_data.csv", "Bats_data.csv")

read.csv("Bats_data.csv")```