knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
Tools for interacting with the General Lake Model (GLM) 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)loadNamespace("printr")
help.search("*", package = "glmtools", types = "help")
unloadNamespace("printr")
glmtools
? It isn't on CRAN!install.packages('remotes') remotes::install_github('usgs-r/glmtools')
glmtools
need?This version requires the NetCDF version R library (called ncdf4
), and rLakeAnalyzer
, and tools
if you would like to run all examples.
deps <- desc::desc_get_deps() knitr::kable(deps[deps$type %in% c("Imports", "Depends"), 2:3])
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
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.