seascape-models / seascape_collaboration

This repository is a framework used in the Seascape Lab for collaboration
13 stars 7 forks source link

Naming of 'data' folders #28

Closed cbrown5 closed 3 years ago

cbrown5 commented 3 years ago

One small issue has occurred: Olivia saved her data in a folder on dropbox and named it Data. Then shared it with me. So across my students I will now I have numerous folders called 'Data' in my dropbox, which is very confusing. Can we clarify advice here? I would change hte name of the folder, but then file paths in the code won't work (or perhaps I am meant to NESP Olivia's data folder in my local repo?)

maxcampb commented 3 years ago

This is an issue I have considered but not fully resolved (it's in the limitations section of the reader). I can think of two ways to solve it: 1. Be vigilant with the data folders and make sure that you ALWAYS nest them in the relevant project directory (currently the way we have to deal with this), or 2. Append the data with the relevant project name (so they are always unique) and then write an function in the rprofile which you use on generic folder names (i.e. myfunction("Data/file.csv") ) to update with the correct file path. The limitation of 2 is that it will only resolve for r but not other programs (however this seems fine in our lab?) Thoughts @cbrown5?

cbrown5 commented 3 years ago

Thanks, lets go with 1. then. I am aware so can do that. So to confirm, I clone olivia's repo to my drive, then put the dropbox Data folder nested within that repo?

maxcampb commented 3 years ago

@cbrown5 Yes that's spot on.