Skip to contents

Extracts data directory, it's parent and names of data files (*.asc) within the directory. This will aid with creating an analysis pipeline.

Usage

set_data_directory(file_path = NULL)

Arguments

file_path

Optional path to data directory. Defaults to NULL and opens GUI for directory selection.

Value

Environment variables to matools_env:

  • directory_data

  • directory_parent

  • files_in_folder

See also

set_pkg_environment to generate the required matools_env

Examples

library(matools)

set_pkg_environment()
set_data_directory(file_path = getwd())
print(matools_env$directory_data)
#> [1] "/home/runner/work/matools/matools/docs/reference"