i_verify_path_and_format: Internal function to verify file paths and format

View source: R/read_spectra.R

i_verify_path_and_formatR Documentation

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
)

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.

Value

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

Author(s)

Jose Eduardo Meireles


annakat/spectrolab documentation built on Oct. 14, 2023, 1:16 a.m.