28
28
'RVER':None, # R Version *number*
29
29
'RUSER':None, # R User's Home Directory
30
30
'USE_NUMERIC':None, # Is Numeric module available
31
'VERBOSE':True # Should status messages be displated.
31
'VERBOSE':False, # Should status messages be displated.
32
'SETUP_READ_CONSOLE': True, # Set to False to prevent standard console read config
33
'SETUP_WRITE_CONSOLE': True, # Set to False to prevent standard console write config
34
'SETUP_SHOWFILES': True # Set to False to prevent standard console file viewerd config
34
def set_options(RHOME=None, USE_NUMERIC=None, VERBOSE=None):
37
def set_options(RHOME=None, USE_NUMERIC=None, VERBOSE=None, SETUP_READ_CONSOLE=None, SETUP_WRITE_CONSOLE=None, SETUP_SHOWFILES=None):
35
38
if RHOME != None and os.path.isdir(RHOME):
36
39
rpy_options['RHOME'] = RHOME
37
40
if USE_NUMERIC != None and USE_NUMERIC in [True, False]:
38
41
rpy_options['USE_NUMERIC'] = USE_NUMERIC
39
42
if VERBOSE != None and VERBOSE in [True, False]:
40
43
rpy_options['VERBOSE'] = VERBOSE
44
if SETUP_READ_CONSOLE != None and SETUP_READ_CONSOLE in [True, False]:
45
rpy_options['SETUP_READ_CONSOLE'] = VERBOSE
46
if SETUP_WRITE_CONSOLE != None and SETUP_WRITE_CONSOLE in [True, False]:
47
rpy_options['SETUP_WRITE_CONSOLE'] = VERBOSE
48
if SETUP_SHOWFILES != None and SETUP_SHOWFILES in [True, False]:
49
rpy_options['SETUP_SHOWFILES'] = VERBOSE