dot-process_and_write: Process and Write a File

Description Usage Arguments Value

Description

Process and Write a File

Usage

1
2
3
4
5
6
7
8
.process_and_write(
  source_path,
  target_path,
  process_f,
  process_args,
  write_f,
  write_args
)

Arguments

source_path

Character scalar; the path to the raw file. Paths starting with http://, http://, http://, or http:// will be downloaded to a temp file if the processed version is not already available.

target_path

Character scalar; the path where the processed version of the file should be stored.

process_f

A function or one-sided formula to use to process the source file. source_path will be passed as the first argument to this function. Defaults to read_f.

process_args

An optional list of additional arguments to process_f.

write_f

A function or one-sided formula to use to save the processed file. The processed object will be passed as the first argument to this function, and target_path will be passed as the second argument. Defaults to saveRDS.

write_args

An optional list of additional arguments to write_f.

Value

The processed object.


dlr documentation built on Sept. 18, 2021, 5:07 p.m.