-
Notifications
You must be signed in to change notification settings - Fork 34
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Integrate R scripts #40
Comments
@jkikstra @Jihoon @adrivinca @awais307 would appreciate some comment here on things like:
|
@khaeru, thanks for creating this issue to start discussions - from a first look i think at least option 2 could be really useful, option 1 maybe too but i don't know enough to give a good judgement there. Detailed input from my side will have to wait a bit until after I return from holidays (probably will only get to it around 14 January). In general, I was thinking until data becomes public, in More to follow in the new year. |
In the nexus work, we have some R scripts that need to be run to process raw data into data then used by other python scripts. |
message_data
contains some modules that are partly or entirely in R. For instance:This issue is to discuss approaches so that this code (a) can be integrated into complete workflows that run unsupervised, and (b) can be more reusable, in a standard way. The implementation should be in message-ix-models.
Some ideas:
mix-models r-script foo/bar/baz
that will simply invoke a file at (e.g.)message_data/foo/bar/baz.R
, while providing some standard environment variables that the script can use to understand paths to data, etc.rpy2
(with documentation & demo code) in Python code to directly call functions from R code in particular files, and retrieve its output for further processing.The text was updated successfully, but these errors were encountered: