Learn R Programming

aroma.apd (version 0.7.0)

findApdMap: Search for APD map files in multiple directories

Description

Search for APD map files in multiple directories.

Usage

# S3 method for default
findApdMap(mapType=NULL, paths=NULL, pattern="[.](a|A)(p|P)(m|M)$", ...)

Value

Returns a vector of the full pathnames of the files found.

Arguments

mapType

A character string of the map type to search for.

paths

A character vector of paths to be searched. The current directory is always searched at the beginning. If NULL, default paths are searched. For more details, see below.

pattern

A regular expression file name pattern to match.

...

Additional arguments passed to findFiles.

Author

Henrik Bengtsson

Details

Note, the current directory is always searched at the beginning. This provides an easy way to override other files in the search path. If paths is NULL, then a set of default paths are searched. The default search path is consituted of:

  1. "."

  2. getOption("AFFX_APD_PATH")

  3. Sys.getenv("AFFX_APD_PATH")

One of the easiest ways to set system variables for R is to set them in an .Renviron file, see Startup for more details.