Rstan: Passing data to stan

Is it best practice when using rstan to pass the data to Stan via the data option in the function versus having rstan grab the data from the global environment?

I’m asking because there seems to be a bug in version 2.19.2 where rstan can no longer find the variables. I filed a bug on GitHub. Issue 690