~ubuntu-branches/ubuntu/maverick/rpy/maverick-updates

« back to all changes in this revision

Viewing changes to rpy_options.py

  • Committer: Bazaar Package Importer
  • Author(s): Dirk Eddelbuettel
  • Date: 2008-06-17 14:15:55 UTC
  • mfrom: (2.1.18 intrepid)
  • Revision ID: james.westby@ubuntu.com-20080617141555-zcqin5xjerohcw5r
Tags: 1.0.3-2
* Rebuilt under R 2.7.1.rc
* debian/control: Upgraded Build-Depends: to new R version

* Applied upstream fixes to setup.py and rpy_tools.py committed by Greg
  that correctly deal with the Rlapack vs lapack linking change.

Show diffs side-by-side

added added

removed removed

Lines of Context:
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
32
35
  }
33
36
 
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
41
50