R/jython.assign.R

Defines functions jython.assign

Documented in jython.assign

#########################################################
# CGB, 20100707, created
#########################################################

jython.assign <- function( rJython, var.name, value ){

    value <- toJSON( value )

    # Creating the call

    jython.command <- c( 
        paste( var.name , "='", value, "'",  sep = "" ),
        paste( var.name , "= json.loads(", var.name, ")", sep = "" )
    )

    jython.exec( rJython, jython.command )
    invisible( NULL )
}

Try the rJython package in your browser

Any scripts or data that you put into this service are public.

rJython documentation built on May 2, 2019, 2:05 a.m.