Path to the job home

job_home(jobname = NULL)

Arguments

jobname

Name of job (defaults to current job)

Value

Path to the job folder as a character string

Details

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.