import_factory_cals {gasanalyzer}R Documentation

Import instrument-specific factory calibration files from a folder.

Description

The factory calibration of the 6800 can be used to calculate concentrations from raw values. The calibration files are found in subfolders of /home/licor/.factory on the instrument. They can be copied to a computer and imported to the package configuration files using this method.

Usage

import_factory_cals(
  folder = tools::R_user_dir("gasanalyzer", which = "config"),
  keep = FALSE
)

Arguments

folder

A folder where calibration files are to be found.

keep

Copies valid calibration files to a package-specific configuration folder. Will result in automatic import of the data in the future. Will overwrite files.

Details

The function will also load the calibration into the package environment, where they can be retrieved by get_factory_cals().

This method assumes the files are named with serial number and calibration date, separated by an underscore.

Value

Calibration data is stored in the package environment.

See Also

get_factory_cals()

Examples

exampledir <- system.file("extdata", package = "gasanalyzer")

# show calibration data
get_factory_cals()

# import factory calibration for example data:
import_factory_cals(exampledir)

# show calibration data
get_factory_cals()


[Package gasanalyzer version 0.4.1 Index]