load.domain: Load a domain from a domain object or from settings

View source: R/domain.R

load.domainR Documentation

Load a domain from a domain object or from settings

Description

Load a domain from a domain object or from settings

Usage

load.domain(x, settings, .fun, .hook)

Arguments

x

A domain object with a valid name and filename

settings

Additional settings to pass to the loading function.

.fun

An optional mapping function to process the domain after loading for formatted text files. If missing the function will be constructed from the domain settings.

.hook

An optional function to process the loaded source after the pre-merge process (if applicable) and before calling .fun. If missing the function will be constructed from the domain settings.

Details

The domain source files are loaded and additional processing is run. First the main source is loaded. Then, if a pre-merge file is indicated, the pre-merge source is loaded and the pre-merge proceeds. After the premerge the hook function is run, which allows for arbitrary processing of the loaded data. Metadata (inMeta) is captured at this point. Then the mapping function (.fun) is run and final metadata are captured.

Value

An S3 object of class domain


qPharmetra/PMDatR documentation built on April 7, 2024, 5:42 p.m.