as_file: Mark as a file by adding classes

View source: R/file.R

as_fileR Documentation

Mark as a file by adding classes

Description

Mark as a file by adding classes

Usage

as_file(path)

Arguments

path

file path

Value

path with classes set to "file" and "file_{ext}" where ext is the file extension

Examples

tf <- tempfile(fileext = ".txt")
writeLines("", tf)

as_file(tf)


polish documentation built on June 3, 2026, 5:07 p.m.