get_based_on: Get based_on from bbi object

Description Usage Arguments

View source: R/get-based-on.R

Description

Returns character vector of the absolute paths all models stored in the 'based_on' field of a 'bbi_...' object NOTE: All paths saved in the object or accompanying YAML will be relative **to the location of that YAML** When the object is loaded into memory, the absolute path to the YAML is stored in the object. These functions simply stitch together that path with the relative paths from the 'based_on' field. As long as the YAML has not moved since it was loaded, this will work.

Extract paths to all models that this model is based on (iterating over 'get_based_on()' function), and all models that those models are based on, recursively. Returns a sorted unique character vector.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
get_based_on(.bbi_object, .check_exists = FALSE)

## Default S3 method:
get_based_on(.bbi_object, .check_exists = FALSE)

## S3 method for class 'character'
get_based_on(.bbi_object, .check_exists = FALSE)

## S3 method for class 'bbi_run_log_df'
get_based_on(.bbi_object, .check_exists = FALSE)

get_model_ancestry(.bbi_object)

## Default S3 method:
get_model_ancestry(.bbi_object)

## S3 method for class 'character'
get_model_ancestry(.bbi_object)

## S3 method for class 'bbi_run_log_df'
get_model_ancestry(.bbi_object)

Arguments

.bbi_object

Tibble of class 'bbi_run_log_df'

.check_exists

Logical scaler for whether it will check if the file exists and error if it does not. FALSE by default.


metrumresearchgroup/mrgvalidatetestreference documentation built on Aug. 15, 2021, 8:13 a.m.