Clear out old reports before generating new ones.
clear_old_reports.Rd
clear_old_reports
deletes reports from previous runs and returns a list of
the reports that were deleted.
Examples
clear_old_reports(tempdir(), tempdir())
#> Warning: cannot remove file '/tmp/RtmpT5sfiO/bslib-2ce9eb5d8d7866b4f2d82a9ef19eb08f', reason 'Directory not empty'
#> Warning: cannot remove file '/tmp/RtmpT5sfiO/downlit', reason 'Directory not empty'
#> Warning: cannot remove file '/tmp/RtmpT5sfiO/bslib-2ce9eb5d8d7866b4f2d82a9ef19eb08f', reason 'Directory not empty'
#> Warning: cannot remove file '/tmp/RtmpT5sfiO/downlit', reason 'Directory not empty'
#> [[1]]
#> [1] "/tmp/RtmpT5sfiO/bslib-2ce9eb5d8d7866b4f2d82a9ef19eb08f"
#> [2] "/tmp/RtmpT5sfiO/downlit"
#>
#> [[2]]
#> [1] "/tmp/RtmpT5sfiO/bslib-2ce9eb5d8d7866b4f2d82a9ef19eb08f"
#> [2] "/tmp/RtmpT5sfiO/downlit"
#>