Adds ability to add variables to R scripts based on QGIS expressions.
The expressions are catched before creating a parameter (to avoid exposure to user), stored and then evaluated and added back to R script. This required changes RTemplates class to avoid code duplication.
Works for QGIS Expressions that output string, integer, float, QDatetime, QDate, QTime, QgsGeometry and list containing these types.
All tests seem to to working (altough it took some time to make it so and make pylint happy).
Adds ability to add variables to R scripts based on QGIS expressions.
The expressions are catched before creating a parameter (to avoid exposure to user), stored and then evaluated and added back to R script. This required changes RTemplates class to avoid code duplication.
Works for QGIS Expressions that output string, integer, float, QDatetime, QDate, QTime, QgsGeometry and list containing these types.
All tests seem to to working (altough it took some time to make it so and make pylint happy).