Watch a conan installation from another process. This can be used to stream the status and progress back to the current R process.
conan_watch(
get_status,
get_log,
show_progress = TRUE,
show_log = TRUE,
poll = 1,
error = TRUE
)
A callback to get the status of the
installation. The callback will be called with no arguments and
must return COMPLETE
on successful completion, ERROR
on
failure and any other value to continue.
A callback to read logs of the installation
(something like function() readLines(filename, warn = FALSE)
may be sufficient)
Logical, indicating if we should show a progress bar. This requires the progress package.
Logical, indicating if the installation log should be printed
Time, in seconds, used to throttle calls to the status function. The default is 1 second
Logical, indicating if we should throw an error if installation fails.
The final status (COMPLETE
or ERROR
)