register_detect_runner_task: Registers the alert detection task

View source: R/scheduler.R

register_detect_runner_taskR Documentation

Registers the alert detection task

Description

registers the alert detection task or stops if no configuration has been set or if it is already running

Usage

register_detect_runner_task()

Details

Registers the alert detection task or stops if no configuration has been set or if it is already running. To generate alerts, this task needs the tweet collection to had successfully run since the last time it ran. This function will use the task scheduler on windows and will fall back to launching the runner as a separate process (attached to this session) on Linux.

Value

Nothing

Examples

if(FALSE){
   #getting tasks statuses
   library(epitweetr)
   message('Please choose the epitweetr data directory')
   setup_config(file.choose())
   register_detect_runner_task()
}

epitweetr documentation built on Nov. 16, 2023, 5:07 p.m.