wiki:rappture_R_api
Last modified 3 years ago Last modified on 11/30/11 02:39:59

Rappture R API

R bindings to the Rappture Development Toolkit.

Summary:

Load the Rappture module

require(Rappture);

Create Rappture I/O object

lib <- rp_lib(path)

Get input value

val <- rp_lib_get_string(lib,path)
val <- rp_lib_get_double(lib,path)
val <- rp_lib_get_integer(lib,path)
val <- rp_lib_get_boolean(lib,path)
val <- rp_lib_get_file(lib,path)

Convert value

val <- rp_units_convert_double(from,to)
val <- rp_units_convert_string(from,to,showUnits)

Put output value

rp_lib_put_string(lib,path,value,append)
rp_lib_put_double(lib,path,value,append)
rp_lib_put_file(lib,path,fname,compress,append)

Result

rp_lib_result(lib)