STAT545-UBC / Discussion

Public discussion
38 stars 20 forks source link

using the LOTR data for HW04 #367

Open aramcb opened 7 years ago

aramcb commented 7 years ago

Hello,

I have been trying to use the LOTR data for HW04.

Currently I have the .csvs in a folder named data in my working directory (my github repo). However, this does not be sufficient to knit the document. For the that, I seem to additionally require that the data folder be in the folder I have set to HW04.

Do you have any guidance on this? It seems strange that I need to have duplicate folders to run code and knit.

Thanks!, Aram

jennybc commented 7 years ago

I highly recommend keeping everything in one top-level directory for the moment. There are absolutely ways around this but it is harder than it should be and I have thus far never wanted to take the time necessary in STAT 545 to present all the solutions.

Long-term, I have hope that knitr/rmarkdown/RStudio will actually make this easier. I think the collective user anguish may have finally made an impression.

In the near term, I am a big fan of these two packages for building robust paths and controlling where inputs/outputs go:

aramcb commented 7 years ago

Thank you for the response and links

I will keep my .csvs (data) in the same folder in which I am running the .rmd. That is, no sub-folders for anything.

Aram