-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Adding netcdf4 as requirement 2. Adding additional instructions for Rdemeter
- Loading branch information
1 parent
7b41a5f
commit 8de9509
Showing
3 changed files
with
36 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,32 @@ | ||
# Rdemeter | ||
This is an R interface for demeter. | ||
|
||
This is an R interface for demeter. | ||
|
||
To use the R functionality, please use the code below by activating the R proj file. | ||
|
||
User will first have to ensure that the python version of demeter is installed. | ||
|
||
After that, user can run the below to intialize Rdemeter. Note that the user will need to install the `reticulate` R | ||
package. | ||
|
||
```R | ||
|
||
devtools::load_all(.) | ||
Rdemeter <- port_model_to_R(model_name="demeter", | ||
path_to_python="where python for demeter is installed") | ||
``` | ||
|
||
After this, the user can access any function from demeter in the `Rdemeter` object, by using `Rdemeter$function_name`. | ||
User can also make use of the convenience function below to pass a demeter config file from R- | ||
|
||
```R | ||
|
||
run_demeter_R(path_to_inputs=" Add path to config here", | ||
write_outputs=TRUE) | ||
|
||
``` | ||
|
||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters