add_write: add_write

View source: R/add_write.R

add_writeR Documentation

add_write

Description

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

Usage

add_write(
  path,
  data_product,
  description,
  version,
  file_type,
  use_data_product,
  use_component,
  use_version,
  use_namespace
)

Arguments

path

config file path

data_product

data_product field

description

component field

version

(optional) version field

file_type

(optional) file type 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

## 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_write(path = path,
          data_product = "test/array",
          description = "data product description",
          version = "0.2.0")

## End(Not run)


rDataPipeline documentation built on Oct. 8, 2024, 5:06 p.m.