"interrupt" sends SIGINT to the running code or dependency install and
keeps the session's state. The code may not stop, so check the returned
output: it can still end in [running; poll with an empty send].
"restart" replaces the worker and discards all R, Python and DuckDB state.
Usage
mcp_console_control(connection, action = c("interrupt", "restart"))Arguments
- connection
A connection created by
mcp_console_connection().- action
"interrupt"or"restart".