sc_retrieve: Retrieve the data file declared by an indicator

Description Usage Arguments Value

View source: R/scmake.R

Description

Identifies the data file's name by removing the indicator extension, then calls scmake to retrieve that file using a recipe given in the remake.yml

Usage

1
2
3
4
5
sc_retrieve(
  ind_file,
  remake_file = getOption("scipiper.remake_file"),
  ind_ext = getOption("scipiper.ind_ext")
)

Arguments

ind_file

the file path of the indicator for which the corresponding data_file will be retrieved

remake_file

the file path+name of the remake file to use in retrieving the data file

ind_ext

the indicator file extension to expect at the end of ind_file, and for which any altered targets should have their build/status files updated

Value

the name of the retrieved data file


aappling-usgs/scipiper documentation built on Aug. 1, 2020, 3:11 p.m.