I have R scripts in my laptop, developed by another teammate.
These use setwd()
function with a harcoded path.
Now I would like to add these scripts to github, and these harcoded paths are a problem because each developer has the github's project in their own path, without a pattern.
How can we get the file path itself, independent of where R points as a working directory?