runr (version 0.0.8)

proc_julia: Run a Julia process

Description

This function returns a list of functions to start/run/stop a Julia process. The code is sent to Julia via a socket connection, and the results are written back in another socket connection.

Usage

proc_julia(port = 2000)

Arguments

port

A TCP port number

Value

A list of functions start(), exec(), running() (check if the process has been running), and stop().

Examples

Run this code
# NOT RUN {
j = proc_julia()
j$start()
j$exec("1+1")
j$exec("a=[1:8]", "a+5")
j$running()  # should be TRUE
j$stop()
# }

Run the code above in your browser using DataLab