write_lines_cleanup: Write lines to a file with deferred cleanup

Description Usage Arguments

View source: R/write.R

Description

Truncates or creates the file before writing, and sets deferred deletion of the file to occur when the specified environment is destroyed. By default, the invoking environment is set.

Usage

1

Arguments

path

Path of the file to create.

...

One or more character vectors of lines to write, NULLs are skipped.

env

Environment to set withr::defer() cleanup on.


iiasa/testGAMS documentation built on Sept. 14, 2021, 1:04 p.m.