def load_bard_workspace():
    try:
        robjects.r('library("rgeos")')
        robjects.r('library("gpclib")')
        robjects.r('library("BARD")')
        robjects.r('library("R2HTML")')
        robjects.r('gpclibPermit()')

        robjects.r.assign('bardBasemap', settings.BARD_BASESHAPE)
        robjects.r('bardmap = readBardMap(bardBasemap)')

        global bardWorkSpaceLoaded
        bardWorkSpaceLoaded = True

        if settings.DEBUG:
            print 'Workspace loaded: %s' % bardWorkSpaceLoaded
            robjects.r('trace(PMPreport, at=1, tracer=function()print(sys.calls()))')

    except Exception as e:
        sys.stderr.write('BARD Could not be loaded.  Check your configuration and available memory')
        return

# A flag that indicates that the workspace was loaded
Construct and return the byte string represented by this cell.
dataset/ETHPy150Open PublicMapping/DistrictBuilder/django/reporting/views.py/load_bard_workspace--crossover with--dataset/ETHPy150Open nskinkel/oppy/oppy/cell/fixedlen.py/EncryptedCell.getBytes