A function that gets the full path of the currently running program. If the function fails to retrieve the path for some reason, it will return a NULL. The function takes no parameters.
The full path of the currently running program, or a NULL.
# Get current path pth <- Sys.path() pth #  "C:/programs/myprogram.R"