| fdp-class | R Documentation |
fdp-class
fdp-class
Container for class fdp
yamla list containing the contents of the working
config.yaml
fdp_config_dira string specifying the directory passed
from fair run
model_configa string specifying the URL of an entry in
the object table associated with the storage_location of the
working config.yaml
submission_scripta string specifying the URL of an entry in
the object table associated with the storage_location of the
submission script
code_repoa string specifying the URL of an entry in
the object table associated with the GitHub repository
code_runa string specifying the URL of an entry in
the code_run table
inputsa data.frame containing metadata associated with
code_run inputs
outputsa data.frame containing metadata associated with
code_run outputs
issuesa data.frame containing metadata associated with
code_run issues
new()Create a new fdp object
fdp$new( yaml, fdp_config_dir, model_config, submission_script, code_repo, code_run )
yamla list containing the contents of the working
config.yaml
fdp_config_dira string specifying the directory passed
from fair run
model_configa string specifying the URL of an entry in
the object table associated with the storage_location of the
working config.yaml
submission_scripta string specifying the URL of an entry in
the object table associated with the storage_location of the
submission script
code_repoa string specifying the URL of an entry in
the object table associated with the GitHub repository
code_runa string specifying the URL of an entry in
the code_run table
Returns a new fdp object
print()Print method
fdp$print(...)
...additional parameters, currently none are used
input()Record code_run inputs in fdp object
fdp$input( data_product, use_data_product, use_component, use_version, use_namespace, path, component_url )
data_producta string specifying the name of the data
product, used as a reference
use_data_producta string specifying the name of the data
product, used as input in the code_run
use_componenta string specifying the name of the data
product component, used as input in the code_run
use_versiona string specifying the data product version,
used as input in the code_run
use_namespacea string specifying the namespace in which
the data product resides, used as input in the code_run
patha string specifying the location of the data product
in the local data store
component_urla string specifying the URL of an entry in the
object_component table
Returns an updated fdp object
output()Record code_run outputs in fdp object
fdp$output( data_product, use_data_product, use_component, use_version, use_namespace, path, data_product_description, component_description, public )
data_producta string specifying the name of the data
product, used as a reference
use_data_producta string specifying the name of the data
product, used as output in the code_run
use_componenta string specifying the name of the data
product component, used as output in the code_run
use_versiona string specifying the version of the data
product, used as output in the code_run
use_namespacea string specifying the namespace in which
the data product resides, used as output in the code_run
patha string specifying the location of the data product
in the local data store
data_product_descriptiona string containing a description of
the data product
component_descriptiona string containing a description of
the data product component
publicReturns an updated fdp object
output_index()Return index of data product recorded in fdp object
so that an issue may be attached
fdp$output_index(data_product, component, version, namespace)
data_producta string specifying the name of the data
product, used as output in the code_run
componenta string specifying the name of the data
product component, used as output in the code_run
versiona string specifying the name of the data
product version, used as output in the code_run
namespacea string specifying the namespace in which
the data product resides, used as input in the code_run
Returns an index used to identify the data product
raise_issue()Record issue in fdp object
fdp$raise_issue( index, type, use_data_product, use_component, use_version, use_namespace, issue, severity )
indexa numeric index, used to identify each input and
output in the fdp object
typea string specifying the type of issue (one of
"data", "config", "script", "repo")
use_data_producta string specifying the name of the data
product, used as output in the code_run
use_componenta string specifying the name of the data
product component, used as output in the code_run
use_versiona string specifying the name of the data
product version, used as output in the code_run
use_namespacea string specifying the namespace in which
the data product resides, used as input in the code_run
issuea string containing a free text description of the
issue
severityan integer specifying the severity of the
issue
Returns an updated fdp object
finalise_output_hash()Record file hash and update path name in fdp object
fdp$finalise_output_hash( use_data_product, use_data_product_runid, use_version, use_namespace, hash, new_path, data_product_url, delete_if_duplicate = FALSE )
use_data_producta string specifying the name of the data
product, used as output in the code_run
use_data_product_runida string specifying the name of the
data product, the same as use_data_product excluding the RUN_ID
variable
use_versiona string specifying the name of the data
product version, used as output in the code_run
use_namespacea string specifying the namespace in which
the data product resides, used as input in the code_run
hasha string specifying the hash of the file
new_patha string specifying the updated location (filename
is now the hash of the file) of the data product in the local data store
data_product_urla string specifying the URL of an
object associated with the data_product
delete_if_duplicate(optional) default is FALSE
Returns an updated fdp object
finalise_output_url()Record data_product and component URLs in fdp
object
fdp$finalise_output_url( use_data_product, use_component, use_version, use_namespace, component_url )
use_data_producta string specifying the name of the data
product, used as output in the code_run
use_componenta string specifying the name of the data
product component, used as output in the code_run
use_versiona string specifying the name of the data
product version, used as output in the code_run
use_namespacea string specifying the namespace in which
the data product resides, used as input in the code_run
component_urla string specifying the URL of an entry in the
object_component table
Returns an updated fdp object
clone()The objects of this class are cloneable with this method.
fdp$clone(deep = FALSE)
deepWhether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.