Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

relative paths instead of absolute paths #11

Open
damianooldoni opened this issue Oct 13, 2020 · 1 comment
Open

relative paths instead of absolute paths #11

damianooldoni opened this issue Oct 13, 2020 · 1 comment
Assignees

Comments

@damianooldoni
Copy link
Contributor

To improve repeatability the paths should be changed from absolute to relative.
Please, consider to use here package which is very useful as it allows finding paths from project root directory even if files are in src or if Rmd's are knitted.

Example of absolute path: https://github.com/trias-project/risk-modelling-and-mapping/blob/master/src/trias_sdm.Rmd#L47

To be rewritten as:

global <- read.csv(file = here("data", "external", "PRA", "PRA_mammals", "gbif_speciesFiles", gbif_filename))

I can assist if needed.

@amyjsdavis
Copy link
Contributor

Sure! I had the paths relative to a folder in the C directory, without thinking that not everyone works from there!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants