Path to the job home
job_home(jobname = NULL)
jobname | Name of job (defaults to current job) |
---|
Path to the job folder as a character string
The job_home()
function returns the file path for `jobname`.
This can be useful if you need to specify the location of files relative to
a project.
If no argument is specified job_home()
will attempt to guess the
current job by looking at any open RStudio projects. If no project is open
or the RStudio API is not available it attempts to guess by looking at the
working directory.