Creates a text file with arbitrary contents
See also
Other steps:
step_add_to_drat(),
step_add_to_known_hosts(),
step_build_pkgdown(),
step_do_push_deploy(),
step_hello_world(),
step_install_pkg,
step_install_ssh_keys(),
step_push_deploy(),
step_run_code(),
step_session_info(),
step_setup_push_deploy(),
step_setup_ssh(),
step_test_ssh()
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"))
#> Superclass TicStep has cloneable=FALSE, but subclass WriteTextFile has cloneable=TRUE. A subclass cannot be cloneable when its superclass is not cloneable, so cloning will be disabled for WriteTextFile.
dsl_get()
#> ── tic configuration summary ───────────────────────────────────────────────────
#> ── Stage: script ───────────────────────────────────────────────────────────────
#> ▶ step_write_text_file("Hi!", path="hello.txt")
