wateRuse
Linux | Windows | Test Coverage | USGS Status |
---|---|---|---|
Please consider reporting bugs and asking questions on the Issues page: https://github.com/USGS-R/wateRuse/issues
Follow @USGS_R
on Twitter for updates on USGS R packages:
We want to encourage a warm, welcoming, and safe environment for contributing to this project. See the code of conduct for more information.
To install the wateRuse package:
Install R (version 3.0 or greater) from: https://cran.r-project.org/
Install RStudio from: https://www.rstudio.com/products/rstudio/download/
Add the USGS R repository to your "Rprofile" to get automatic updates. Run the following code:
rprofile_path = file.path(Sys.getenv("HOME"), ".Rprofile")
write('\noptions(repos=c(getOption(\'repos\'),
CRAN=\'https://cloud.r-project.org\',
USGS=\'https://owi.usgs.gov/R\'))\n',
rprofile_path,
append = TRUE)
cat('Your Rprofile has been updated to include GRAN.
Please restart R for changes to take effect.')
Restart R!
In the RStudio "Console" window (usually left or lower-left), run the following command:
install.packages("wateRuse")
Update often. Next time you update your packages, wateRuse
will automatically update:
After installing package, run the following command:
library(wateRuse)
explore_wateRuse()
Your default browser will open and start the app. If using IE, copy and paste the address to Firefox or Chrome.
If you would like to contribute functionality or bug fixes, some getting started document is available here.
A visual of the github contribution workflow used is here.
Other userful information for contributing can be found here.
The shiny app can be started in development mode, with sample data loaded automatically and shiny files in from the source inst
directory. Assuming your working directory is the package source directory, start the app with a dev
variable set to TRUE
in your global environment and point to the inst/shiny
directory like this:
library(wateRuse)
dev <- TRUE
runApp("inst/shiny", launch.browser = TRUE)
This software is in the public domain because it contains materials that originally came from the U.S. Geological Survey, an agency of the United States Department of Interior. For more information, see the official USGS copyright policy
This software has been approved for release by the U.S. Geological Survey (USGS). Although the software has been subjected to rigorous review, the USGS reserves the right to update the software as needed pursuant to further analysis and review. No warranty, expressed or implied, is made by the USGS or the U.S. Government as to the functionality of the software and related material nor shall the fact of release constitute any such warranty. Furthermore, the software is released on condition that neither the USGS nor the U.S. Government shall be held liable for any damages resulting from its authorized or unauthorized use.
This software is provided "AS IS."