check_inputs: Check Inputs

check_inputsR Documentation

Check Inputs

Description

Check whether a raw or processed input exists

Usage

check_inputs(mainPath, location, type, onlyPrint = TRUE)

Arguments

mainPath

character; the parent directory of the location folder

location

character; the location folder name

type

character; 'raw' or 'processed' depending on whether the required input is the raw input or the already processed one.

onlyPrint

logical; should the function just print which inputs are available and which are not available. Internally onlyPrint is set FALSE, but when the function is used directly by the user, print should be set to TRUE.

Value

character vector when onlyPrint = FALSE, and NULL when onlyPrint = TRUE

Examples

# Replace workDir with the actual path to your working directory
## Not run: 
mainPath <- "workDir"
initiate_project(mainPath)
## End(Not run)

# Replace myLocation with the location name you are working on (workDir subfolder)
## Not run: 
location <- "myLocation"
check_inputs(mainPath, location, type = "raw")
## End(Not run)

ptimoner/inAccMod documentation built on Jan. 27, 2025, 9:34 a.m.