as_ind_file: Returns the indicator name corresponding to the given data...

Description Usage Arguments Examples

View source: R/scmake.R

Description

If data_file already has the indicator extension, an error will be generated.

Usage

1
as_ind_file(data_file, ind_ext = getOption("scipiper.ind_ext"))

Arguments

data_file

the data file name (with path as needed) whose corresponding indicator name should be returned

ind_ext

the indicator file extension to apply

Examples

1
2
3
4
5
6
as_ind_file('mydata.rds') # 'mydata.rds.ind'
as_ind_file('mydata.rds', ind_ext='st') # 'mydata.rds.st'
## Not run: 
as_ind_file('mydata.rds.ind') # Error: "data_file contains indicator files: mydata.rds.ind"

## End(Not run)

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