find_raw: Find locations

View source: R/find_path.R

find_rawR Documentation

Find locations

Description

If the options have been set (see setup_icews()), find_raw will return the path to the raw data file directory, find_db the database file path, and find_docs the directory containing documentation files.

Usage

find_raw(...)

find_db(...)

find_docs(...)

Arguments

...

additional elements that will be combined with the base path using base::file.path()

Value

A length 1 character vector containing the relevant path.

Examples

## Not run: 
find_raw()
find_docs()
find_db()

# additional elements will be combined with the base path, which makes it
# easier to get the full path for the contents of the data directory:
file_list <- dir(find_raw())
find_raw(file_list[1])
events <- read_events_tsv(find_raw(file_list[1]))

## End(Not run)


andybega/icews documentation built on July 7, 2023, 1:29 p.m.