si_path: Access SI folderpath

View source: R/si_paths.R

si_pathR Documentation

Access SI folderpath

Description

'si_path' accesses folder paths stored in global options to make it easier work across analysts/machines. Analysts will first setup the paths using 'set_paths()' which then store local folder paths where larger data are stored centrally and outside of projects. This will also work on PEPFAR Workbench to return the location of the MSD, 'Sys.getenv("S3_READ")'.

Usage

si_path(type = "path_msd")

Arguments

type

folderpath, eg "path_msd" (default), "path_datim", "path_raster", "path_vector", "path_downloads"

Value

folderpath stored in global options

See Also

Other stored paths: set_paths()

Examples

## Not run: 
#old
  list.files("C:/Users/rshah/Documents/Data", "OU_IM", full.names = TRUE)
#new
  list.files(si_path("path_msd"), "OU_IM", full.names = TRUE)

## End(Not run)

USAID-OHA-SI/glamr documentation built on Oct. 1, 2024, 2:18 p.m.