choose_input_files {PhotoGEA}R Documentation

Choosing input files

Description

Tools for choosing input files via dialog windows.

Usage

  choose_input_files()

  choose_input_licor_files()

  choose_input_tdl_files()

Details

These functions are only available in interactive sessions; moreover, choose_input_licor_files and choose_input_tdl_files are only available in Microsoft Windows.

The outputs from these functions are typically passed to read_gasex_file via lapply.

Value

A character vector of full file paths.

Examples

# Interactively select a single file and get full file paths to all
# other files in the same directory that have the same extension
if (interactive()) {
  file_paths <- choose_input_files()
}


# Interactively select one or more Licor Excel files and read each one to create
# a list of exdf objects
if (interactive() && .Platform$OS.type == "windows") {
  lapply(choose_input_licor_files(), function(fname) {
    read_gasex_file(fname, 'time')
  })
}

# Interactively select one or more TDL data files and read each one to create a
# list of exdf objects
if (interactive() && .Platform$OS.type == "windows") {
  lapply(choose_input_tdl_files(), function(fname) {
    read_gasex_file(fname, 'TIMESTAMP')
  })
}

[Package PhotoGEA version 1.3.3 Index]