Displaying 1 result from an estimated 1 matches for "frame_fil".
Did you mean:
frame_fmt
2010 Sep 29
2
Script auto-detecting its own path
...) them in that "master" script. Problem is, the "master" script must first know where it is (without me having to open it and retype the path every time I move it).
Any ideas?
Stu
ps. I found this on the internet but a) I couldn't understand it, and b) it didn't work:
frame_files <- lapply(sys.frames(), function(x) x$ofile)
frame_files <- Filter(Negate(is.null), frame_files)
PATH <- dirname(frame_files[[length(frame_files)]])
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Stu Field, PhD
Postdoctoral Fellow
Department of Biology
Colorado State University
1878 Campus Deliver...