Spectre icon indicating copy to clipboard operation
Spectre copied to clipboard

Use here package to replace setwd in all functions

Open ghar1821 opened this issue 2 years ago • 1 comments

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.

ghar1821 avatar May 08 '23 03:05 ghar1821

Cool idea!

tomashhurst avatar Jun 05 '23 09:06 tomashhurst