copy_to_tempdir: Copy a file to a temporary directory

View source: R/testing.R

copy_to_tempdirR Documentation

Copy a file to a temporary directory

Description

Takes the path to a file as input and returns the path where the temporary file is stored. Don't forget to unlink once you are done.

Usage

copy_to_tempdir(path_perm = testthat_file())

Arguments

path_perm

The path of the file to copy.


r-lib/styler documentation built on Sept. 12, 2024, 1:11 p.m.