PredictiveEcology / SpaDES

R package for developing and running Spatial Discrete Event Simulation models
https://spades.predictiveecology.org
Other
55 stars 21 forks source link

Translator modules - change object names #329

Closed eliotmcintire closed 4 years ago

eliotmcintire commented 7 years ago

We have long identified the need for lightweight translator modules: the simplest example being a module changes the name(s) of (an) object(s).

Having delved into Rcpp, it should be easy to make a few lightweight functions that assign a new name to an object, i.e., using the Rcpp pass-by-reference approach, effectively giving the same object 2 names in R.

achubaty commented 7 years ago

That would be GREAT. It would also facilitate getting rid of "global" parameters since my main use for them had been to allow assigning the same name to objects shared between multiple modules.

achubaty commented 7 years ago

As we begin creating these sorts of general-use modules, I suggest we put them in a separate package (e.g., SpaDES.extensions).

achubaty commented 4 years ago

introduced synonyms for this