start collectl if possible

cl_start(target = tempfile())

Arguments

target

character(1) path; destination of collectl report

Value

instance of Rcollectl_process with components process (a processx R6 instance) and target (a file path where collectl results will be written)

Examples

if (cl_exists()) { zz = cl_start() print(zz) print(cl_result_path(zz)) cl_stop(zz) zz$process$is_alive() }
#> Rcollectl process object #> PROCESS 'collectl', running, pid 122127. #> /tmp/Rtmp9u4arh/file1dce07b4a67c #> character(0)
#> [1] TRUE