managed_tempfile: Create and manage temporary file with automatic cleanup

View source: R/encoding.R

managed_tempfileR Documentation

Create and manage temporary file with automatic cleanup

Description

Creates a temporary file and registers cleanup via on.exit().

Usage

managed_tempfile(pattern = "rclade_", fileext = ".tmp", tmpdir = tempdir())

Arguments

pattern

Character. File name pattern.

fileext

Character. File extension.

tmpdir

Character. Temporary directory. Default: tempdir().

Value

List with path and cleanup function.


Rclade documentation built on Sept. 26, 2026, 5:07 p.m.