powered by
jython.exec( rJython, python.code )
rJython
The vector may consists of a single string with EOL and indentation characters embedded.
Alternatively, it can be a character vector, each entry containing one or more lines of python code.
rJython <- rJython() a <- 1:4 b <- 5:8 jython.exec( rJython, c( "def concat(a,b):", "\treturn a+b" ) ) jython.call( rJython, "concat", a, b)
Run the code above in your browser using DataLab