gjearevoll / BioDivMapping

A pipeline dedicated to analysing and visualising the biodiversity of different taxa in Norway
GNU General Public License v3.0
5 stars 3 forks source link

functions requiring arguments from parent environment #114

Open RRTogunov opened 7 months ago

RRTogunov commented 7 months ago

Some functions need objects that are not required to be specified in the function as argument, and assume these are defined in the parent environment. for example, refineSpeciesData takes arguments for speciesData and modelRun, but also utilises redList, which would have to have been specified outside of function. eg 2. get_met() pulls projCRS from parent environment (side note: this may not be necessary since reprojection is conducted in environmental import). We should review functions for these, and explicitly add all necessary objects as arguments in function definition.