Fixes problem with installing package if no DJANGO_SETTING_MODULE env var is present

I've fixed this by lazily instantiating the R object, so that it's not instantiated during setup.