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.
We used
setwd
a fair bit in functions which need to reference (read or write) files, which is not great assetwd
is fragile and very dependent on the way you order your files on your computer. Thehere
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 anysetwd
.