I keep seeing discussions about the benefits of using the here
package. The initial premise is always that it is a good replacement for setwd()
. I agree with that sentiment. Using setwd()
is not a great idea and I have never used it. However, I have also never used here
and I have not had any path-related issues.
I understand the challenge of defining the path in a standalone script, but to use here
, you need to have an R project. If you have a project, your working directory is already properly set. In that case, here()
is just getwd()
. What is the benefit of the extra layer?