Difference between revisions of "R Packages"
From Age of Water
Line 28: | Line 28: | ||
instructions from [https://github.com/USGS-R/glmtools USGS github] | instructions from [https://github.com/USGS-R/glmtools USGS github] | ||
− | ''For windows use the following command in R:'' | + | ''For windows use the following command in R:'' |
<code><pre>install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") </pre></code><br /> | <code><pre>install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary") </pre></code><br /> | ||
− | ''then'' | + | ''then'' |
<code><pre> install.packages("glmtools",repos = c("http://gleon.github.com/", <br /> | <code><pre> install.packages("glmtools",repos = c("http://gleon.github.com/", <br /> | ||
"http://cran.us.r-project.org"), dependencies = TRUE,type = "both",<br /> | "http://cran.us.r-project.org"), dependencies = TRUE,type = "both",<br /> | ||
INSTALL_opts = "--no-multiarch") </pre></code> | INSTALL_opts = "--no-multiarch") </pre></code> | ||
− | ''For OSX or Linux use the following command in R:'' | + | ''For OSX or Linux use the following command in R:'' |
<code> <pre>install.packages("glmtools",repos = c('http://gleon.github.com/', <br /> | <code> <pre>install.packages("glmtools",repos = c('http://gleon.github.com/', <br /> | ||
'http://cran.us.r-project.org'), dependencies = TRUE,type = "both")</pre></code><br /> | 'http://cran.us.r-project.org'), dependencies = TRUE,type = "both")</pre></code><br /> |
Revision as of 17:01, 6 October 2014
Installing R
Installing required packages
Lake Analyzer
In R, type:
install.packages('rLakeAnalyzer')
To use package, type:
library(LakeAnalyzer)
see Lake Analyzer pdf for help
Lake Metabolizer
In R, type:
install.packages('LakeMetabolizer')
To use package, type:
ibrary(LakeMetabolizer)
see Lake Metabolizer pdf for help
To see which packages are currently loaded into your R session, type:
search()
GLMtools (Not on CRAN)
instructions from USGS github
For windows use the following command in R:
install.packages("ncdf4",repos = "http://gleon.github.com/",type = "win.binary")
then
install.packages("glmtools",repos = c("http://gleon.github.com/", <br />
"http://cran.us.r-project.org"), dependencies = TRUE,type = "both",<br />
INSTALL_opts = "--no-multiarch")
For OSX or Linux use the following command in R:
install.packages("glmtools",repos = c('http://gleon.github.com/', <br />
'http://cran.us.r-project.org'), dependencies = TRUE,type = "both")