Sends Ctrl-C ("interrupt") or Ctrl-D ("reset") to the R session behind a
mcp_repl_connection(). An interrupt may not stop the code. A reset starts
a fresh interpreter and discards its variables. Check the returned result to
see what happened.
Usage
mcp_repl_control(connection, action = c("interrupt", "reset"))Arguments
- connection
A connection created by
mcp_repl_connection().- action
"interrupt"or"reset".