RStudio has a useful feature:
Session -> Set Working Directory -> To Source File Location
Is there a way to do this without using the
You can use :
source("script.R", chdir = TRUE)
and change "script.R" by the name of the file you're interested in.