load_external_postp: Load External Post-Processing Functions

View source: R/access_db.R

load_external_postpR Documentation

Load External Post-Processing Functions

Description

Loads post-processing functions and their configuration from an external folder named postp, located in the root directory of the database. The folder must contain two files: structure.json (which defines the post-processing configuration) and functions.R (which contains the R function definitions to be used for post-processing). The function checks for these files and loads the JSON configuration and sources the R script. If the required files are missing, it stops execution and notifies the user with instructions on how to set up the files correctly.

Usage

load_external_postp(path)

Arguments

path

[mandatory] (character) The path to the root directory where the database is located.

Value

Returns a list of post-processing functions loaded from the structure.json file. The functions defined in functions.R are sourced and made available in the returned environment.

Note

The postp folder must contain two files: structure.json and functions.R. The structure.json file contains mappings of variables to the post-processing functions, while functions.R contains the actual function definitions that will be used for post-processing.


geeLite documentation built on Aug. 9, 2025, 1:08 a.m.