forked from GLEON/glmtools
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.Rmd
92 lines (61 loc) · 2.83 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
---
output:
github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, echo = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "README-"
)
```
glmtools
=====
[![Build status](https://ci.appveyor.com/api/projects/status/j5mscylmkssa0esf)](https://ci.appveyor.com/project/jread-usgs/glmtools)
[![Build Status](https://travis-ci.org/USGS-R/glmtools.svg)](https://travis-ci.org/USGS-R/glmtools)
<!-- [![Coverage Status](https://img.shields.io/coveralls/USGS-R/glmtools.svg)](https://coveralls.io/r/USGS-R/glmtools) -->
Tools for interacting with the [General Lake Model (GLM)](http://aed.see.uwa.edu.au/research/models/GLM/ "General Lake Model's website") in R. `glmtools` includes some basic functions for calculating physical derivatives and thermal properties of model output, and some plotting functionality (see example image below).
`glmtools` Functions (as of v0.2.5.2)
=====
```{r load printr, echo=FALSE,message=FALSE,results='hide'}
loadNamespace("printr")
```
```{r echo=FALSE}
help.search("*", package = "glmtools", types = "help")
```
```{r unload printr, echo=FALSE}
unloadNamespace("printr")
```
FAQ
=====
How do I install `glmtools`? It isn't on CRAN!
===
`glmtools` can be installed from the [USGS GRAN](http://owi.usgs.gov/R/gran.html) repository. To install `glmtools` and all dependencies, follow the appropriate instructions below:
1. Setup R to add GRAN using the instructions on the [USGS R page](http://owi.usgs.gov/R/gran.html).
2. After GRAN is setup (usually requires a restart of R), then use the following command in R:
`install.packages("glmtools")`
What libraries does `glmtools` need?
===
This version requires the NetCDF version R library (called `ncdf4`), and `rLakeAnalyzer`, and `tools` if you would like to run all examples.
```{r echo=FALSE}
deps <- desc::desc_get_deps()
knitr::kable(deps[deps$type %in% c("Imports", "Depends"), 2:3])
```
How do I contribute new code back to the glmtools project?
===
In order to contribute to this code, we recommend the following workflow:
1) "fork" this repository to your own personal github account
2) clone the github repository to your computer:
$git clone https://github.com/{username}/glmtools.git
3) modify code or add new functionality, save the code
4) add the repository master to a remote master called "upstream"
$cd glmtools
$git remote add upstream https://github.com/USGS-R/glmtools.git
5) before pushing your changes to your repository, pull in the current version of the GLEON master:
$git fetch upstream
6) merge these differences with your own "master" version:
$git merge upstream/master
7) push your changes to your github repository, in addition to changes made by pulling in the GLEON master:
$git push
8) submit a pull request to GLEON master using your account at github.com