Skip to contents

clear_old_reports deletes reports from previous runs and returns a list of the reports that were deleted.

Usage

clear_old_reports(i_folder, p_folder)

Arguments

i_folder

Filepath. Folder containing internal reports.

p_folder

Filepath. Folder containing public reports.

Value

The list of old reports that were cleared.

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"                               
#>