file.locate: Return absolute path for name searched in search-pathes

Description Usage Arguments Value

View source: R/Rsystem.R

Description

Search for pathes.

Usage

1
2
3
4
5
6
7
8
file.locate(
  path,
  prefixes = NULL,
  normalize = TRUE,
  as.dirs = TRUE,
  force = FALSE,
  home = TRUE
)

Arguments

path

path (segment) to be located in standard locations

prefixes

prefixes to be prepended to path to check existance

normalize

boolean to inidcate whether a normalized path should be returned (absolute)

as.dirs

assume that prefixes are pathes, i.e. a slash will be put between path and prefix

force

enforces that path and prefix are always joined, otherwise if path is absolute no prefixing is performed

home

boolean to indicate whether starting prefix '~' should be interpolated to the home folder

Value

character vector with path to file or NULL if no file could be located


sboehringer/gwasWeighted documentation built on Dec. 22, 2021, 10:19 p.m.