ImmuneDynamics / Spectre

A computational toolkit in R for the integration, exploration, and analysis of high-dimensional single-cell cytometry and imaging data.
https://immunedynamics.github.io/spectre/
MIT License
56 stars 21 forks source link

Use here package to replace setwd in all functions #162

Open ghar1821 opened 1 year ago

ghar1821 commented 1 year ago

We used setwd a fair bit in functions which need to reference (read or write) files, which is not great as setwd is fragile and very dependent on the way you order your files on your computer. The here package (https://here.r-lib.org/articles/here.html) can address this by making it easier to construct an OS independent path, which can then be used to to replace any setwd.

tomashhurst commented 1 year ago

Cool idea!