stop collectl via processx interrupt

cl_stop(proc)

Arguments

proc

an entity inheriting from "Rcollectl_process" S3 class

Value

invisibly returns the input

Examples

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