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.


styler documentation built on Aug. 29, 2023, 5:10 p.m.