Using the functions in this package can lead to several pdf
files cluttering your tempdir().
ls_temp_pdfs() lists them while rm_temp_pdfs() removes them.
By default only the temporary pdf files created by this package are
listed/removed.
Arguments
- exclude
A character vector of filenames to exclude.
- fileext
File extension of the temporary pdf files to list/remove. Defaults to
___pnpmisc.pdf, the file extension this package gives the temporary pdf files it creates. Use a more indiscriminate value such as ".pdf" to also list/remove pdf files intempdir()created by other means.
Value
ls_temp_pdfs() returns a character vector.
rm_temp_pdfs() returns invisible(NULL).
As a side effect rm_temp_pdfs() deletes the listed files.
Examples
f1 <- pdf_create_blank()
f2 <- pdf_compress(f1)
f3 <- pdf_subset(f2, pages = 1L)
ls_temp_pdfs()
#> [1] "/tmp/Rtmprtft6U/file1d334725c383ab___pnpmisc.pdf"
#> [2] "/tmp/Rtmprtft6U/file1d334765db6df5___pnpmisc.pdf"
#> [3] "/tmp/Rtmprtft6U/file1d33477259dc49___pnpmisc.pdf"
rm_temp_pdfs()
ls_temp_pdfs()
#> character(0)