An object of this class handles the lower-level communication with
an R process. Objects of class RKernelSession inherit from
this class.
Super classes
processx::process -> callr::r_session -> RSessionBase
Public fields
promptThe command prompt
bannerThe R startup message used as a session banner in the terminal and info box.
waitingA logical value, whether the R session is waiting for input.
drop_last_inputA logical value, whether to drop the echo of the last input
last_inputA character string, the last input sent to the R session. Needed to filter out the echo of the input.
Methods
Inherited methods
processx::process$as_ps_handle()processx::process$format()processx::process$get_cmdline()processx::process$get_cpu_times()processx::process$get_error_connection()processx::process$get_error_file()processx::process$get_exe()processx::process$get_exit_status()processx::process$get_input_connection()processx::process$get_input_file()processx::process$get_memory_info()processx::process$get_name()processx::process$get_output_connection()processx::process$get_output_file()processx::process$get_pid()processx::process$get_poll_connection()processx::process$get_result()processx::process$get_start_time()processx::process$get_status()processx::process$get_username()processx::process$get_wd()processx::process$has_error_connection()processx::process$has_input_connection()processx::process$has_output_connection()processx::process$has_poll_connection()processx::process$interrupt()processx::process$is_alive()processx::process$is_incomplete_error()processx::process$is_incomplete_output()processx::process$is_supervised()processx::process$kill()processx::process$kill_tree()processx::process$poll_io()processx::process$read_all_error()processx::process$read_all_error_lines()processx::process$read_all_output()processx::process$read_all_output_lines()processx::process$read_error()processx::process$read_error_lines()processx::process$read_output_lines()processx::process$resume()processx::process$signal()processx::process$supervise()processx::process$suspend()processx::process$wait()processx::process$write_input()callr::r_session$attach()callr::r_session$call()callr::r_session$close()callr::r_session$debug()callr::r_session$finalize()callr::r_session$get_running_time()callr::r_session$get_state()callr::r_session$poll_process()callr::r_session$print()callr::r_session$read()callr::r_session$run()callr::r_session$run_with_output()callr::r_session$traceback()
Method new()
Initialize the object and start the session
Usage
RSessionBase$new(
options = r_session_options(stdout = "|", stderr = "|", cmdargs = c("--interactive",
"--no-readline", "--no-save", "--no-restore"), env = c(R_CLI_NUM_COLORS =
"16777216")),
prompt = "> "
)Arguments
optionsR session objects, see
r_session_options.promptThe expected prompt string of the R session
envA character vector with environment variables for the R process