add_read: add_read

Description Usage Arguments Examples

View source: R/add_read.R

Description

Add data product to read block of user-written config file. Used in combination with create_config() for unit testing.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
add_read(
  path,
  data_product,
  component,
  version,
  use_data_product,
  use_component,
  use_version,
  use_namespace
)

Arguments

path

config file path

data_product

data_product field

component

component field

version

(optional) version field

use_data_product

(optional) use_data_product field

use_component

(optional) use_component field

use_version

(optional) use_version field

use_namespace

(optional) use_namespace field

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
## Not run: 
path <- "test_config/config.yaml"

# Write run_metadata block
create_config(path = path,
              description = "test",
              input_namespace = "test_user",
              output_namespace = "test_user")

# Write read block
add_read(path = path,
         data_product = "test/array",
         component = "level/a/s/d/f/s",
         version = "0.2.0")

## End(Not run)

rDataPipeline documentation built on Nov. 18, 2021, 1:14 a.m.