configuration,laravel,laravel-4,environments
A call to Config::get() will already get you information of your current environment, if you are in dev it will be dev, if you are in production it will be the production data. If you need to get a configuration information about another environment you can do by: return Config::get('environment/config.name');...
You can source the contents into a specific environment with sys.source if you like. For example b <- 0 ee <- new.env() sys.source('sub.R', ee) ee$a # [1] 1 # the ee envir has the result of the sourcing if(ee$a>1) {print(T)} else{print(F)} # [1] FALSE b # [1] 0 #still zero...