# Defining R Component Paths

In R, /usr/lib64/R/library is the location of installed libraries and packages. However, if R packages and libraries are installed manually by using the command install.packages() or R CMD build source.tar.gz, the path for these newly installed components are not known to Condor unless specified.

The following are common R utilities and commands used to find and specify absolute and relative paths for unique components:

• To identify the default directory from which you read input and to which you write output, use the command getwd(). For example:

> getwd()

You also can write to a specific directory using the command sink(<path and file name>).

• To set the default or working directory from which you read input and to which you write output, use the command setwd(). Insert the full path between the parentheses. For example: