Debian Codegraph @

R/main.r

raw symbols SCIP
1 #' Initialise and run the kernel
2 #'
3 #' @param connection_file The path to the Jupyter connection file, written by the frontend
4 #'
5 #' @export
6 main <- function(connection_file = '') {
7 if (connection_file == '') {
8 # On Windows, passing the connection file in as a string literal fails,
9 # because the \U in C:\Users looks like a unicode escape. So, we have to
10 # pass it as a separate command line argument.
11 connection_file <- commandArgs(TRUE)[[1]]
12 }
13 log_debug('Starting the R kernel...')
14 kernel <- Kernel$new(connection_file = connection_file)
15 kernel$run()
16 }