Get a temporary filename, similar to tempfile, except that it always writes to a temporary folder named beastier.
Arguments
- pattern
a non-empty character vector giving the initial part of the name.
- fileext
a non-empty character vector giving the file extension
Examples
get_beastier_tempfilename()
#> [1] "/github/home/.cache/beastier/file77a5bdac059"
get_beastier_tempfilename(pattern = "my_pattern_")
#> [1] "/github/home/.cache/beastier/my_pattern_77a3dc88880"
get_beastier_tempfilename(fileext = ".ext")
#> [1] "/github/home/.cache/beastier/file77a4b0c489e.ext"