wdfw-fp / CreelEstimates

WDFW freshwater creel estimates
GNU General Public License v3.0
11 stars 3 forks source link

Storage of project-specific .Rmd files and file path access to root folder resources #32

Closed evanbooher closed 1 year ago

evanbooher commented 1 year ago

I started working on a test implementation of the outputs file structure based loosely on this sketch by Kale:

image

When working with .Rmd files (assuming a distinct .Rmd file per "analysis"), the working directory is assumed to be the location where that .Rmd file is stored. If storing .Rmd files in a version of the scheme above, this effectively breaks access to the input_files and R_functions folders. The solution I've found is the use the function here() from the R package here to coerce file paths to include the root folder to enable access to the input_files and R_functions folders example: image

I think making this edit to fw_creel.Rmd would be harmless working from the root folder, while enabling project specific copies to work from a sub-folder. Thoughts? @kalebentley @daauerbach

evanbooher commented 1 year ago

Issue closed, using here( ) to establish relative working directories within CreelEstimates folder.