Learn R Programming

spectrolab (version 0.0.18)

i_verify_path_and_format: Internal function to verify file paths and format

Description

Internal function to verify file paths and format

Usage

i_verify_path_and_format(
  path,
  format = NULL,
  exclude_if_matches = NULL,
  ignore_extension = FALSE
)

Value

a list containing a vector of paths called `i_path` and a char with the file format called `i_format`

Arguments

path

Path to directory or input files

format

File format. Defaults to NULL so spectrolab tries to guess it from the file name. Alternatively, use "asd" for ASD; "sig" for SVC (Spectra Vista); or "sed" for PSR (Spectral Evolution)

exclude_if_matches

excludes files that match this regular expression. Example: "BAD"

ignore_extension

Boolean. If TRUE, the parser will try to read every file in path regardless of the expected extension.

Author

Jose Eduardo Meireles