I’m fairly new to Rmarkdown and blogdown, so forgive me if this is a simple question. I have successfully used blogdown to post an Rmd file to my blog, which worked great! Now I would like to post an Rmd file which calls data, and I’m not sure how to do this.
I have the data saved on my computer, and I want to do something like:
train <- read.csv("~/data/train.csv")
where the file path is the link to the path on my computer. This didn’t work, so I tried variations of putting the data in the static folder in the blogdown files, putting it in the public folder, putting it on github and linking to the blob/master/train.csv file, etc.
There must be an easy way to do this, but for the life of me I can’t figure it out. Please help!