View source: R/get-path-from-object.R
Builds the full path to a file that is stored as part of a 'bbi_...' S3 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 requested relative path. As long as the YAML has not moved since it was loaded, this will work.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | get_path_from_object(.bbi_object, .key, .check_exists = TRUE)
## Default S3 method:
get_path_from_object(.bbi_object, .key, .check_exists = TRUE)
## S3 method for class 'character'
get_path_from_object(.bbi_object, .key, .check_exists = TRUE)
## S3 method for class 'bbi_run_log_df'
get_path_from_object(.bbi_object, .key, .check_exists = TRUE)
get_model_path(.bbi_object, .check_exists = TRUE)
get_output_dir(.bbi_object, .check_exists = TRUE)
get_yaml_path(.bbi_object, .check_exists = TRUE)
|
.bbi_object |
Tibble of class 'bbi_run_log_df' |
.key |
The key that contains the relative path |
.check_exists |
Logical scaler for whether it will check if the file exists and error if it does not. True by default. |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.