Skip to contents

Creates a text file with arbitrary contents

Usage

step_write_text_file(..., path)

Arguments

...

[character]
Contents of the text file.

path

[string]
Path to the new text file.

Examples

dsl_init()
#>  Creating a clean tic stage configuration
#>  See `?tic::dsl_get` for details

get_stage("script") %>%
  add_step(step_write_text_file("Hi!", path = "hello.txt"))

dsl_get()
#> 
#> ── tic configuration ───────────────────────────────────────────────────────────
#> ── script ───────────────────────────────────────────────────────────── stage ──
#> ▶ step_write_text_file("Hi!", path = "hello.txt")