Below you will find pages that utilize the taxonomy term “directory”
Blog
How to Get Path to or Directory of Current Script in R
Use following code to get the path to or directory of current (running) script in R:
1scr_dir <- dirname(sys.frame(1)$ofile) 2scr_path <- paste(scr_dir, "script.R", sep="/") Taken from SO