Skip to content
This repository has been archived by the owner on Oct 6, 2022. It is now read-only.

Latest commit

 

History

History
111 lines (68 loc) · 4.84 KB

README.md

File metadata and controls

111 lines (68 loc) · 4.84 KB

grantools

Tools for the Geological survey R Archive Network

Package Status

status

This package is considered a 'support' package. For more information, see: https://owi.usgs.gov/R/packages.html#support

Package Support

The Water Mission Area of the USGS supports the development and maintenance of grantools through September 2018, and most likely further into the future. Resources are available primarily for maintenance and responding to user questions. Priorities on the development of new features are determined by the grantools development team.

USGS

adding a package to GRAN

see requirements for packages here: http://owi.usgs.gov/R/gran.html

If package requirements are met, including your package passing checks, existing on github, and being maintained by a usgs.gov email address, you can add a package to GRAN using the following instructions:

Tag a stable release of your package on github:

adding a tag to github

Fork this repository:

fork GRAN

Add a pointer to your package in inst/gran_src_list.tsv

change source list

Create a pull request of your change:

pull request

Wait to be notified of any needed changes, or hear about success

using grantools to build GRAN

building locally

From R with the grantools package built locally:

library(grantools)
dl_build_src()
dl_build_bin()

building from jenkins

Windows Powershell commands:

if not exist gran_build_libs mkdir gran_build_libs
if not exist .Renviron echo "R_LIBS_USER=\"./gran_build_libs\"" > .Renviron

REM If the libs directory is still around, it may have 
REM libraries from the wrong version of R in it. Start fresh. 

rmdir gran_build_libs /S /Q
mkdir gran_build_libs
REM Set the PATH to not include R. This is a bit of a hack

set "PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files\Amazon\AWSCLI\;C:\Program Files (x86)\Pandoc\"

set "PATH=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\Program Files\R\R-3.1.3\bin;%PATH%"

pandoc --version

Rscript -e "install.packages('devtools', lib='gran_build_libs', repos='http://cran.us.r-project.org')"
Rscript -e "library(devtools);install_github('USGS-R/grantools');library(granbuild);dl_build_src();jenkins_build_bin()"
REM Set the PATH to not include R. This is a bit of a hack

set "PATH=C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\AMD APP\bin\x86_64;C:\Program Files (x86)\AMD APP\bin\x86;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files (x86)\Git\cmd;C:\Program Files (x86)\MiKTeX 2.9\miktex\bin\;C:\Program Files\Amazon\AWSCLI\;C:\Program Files (x86)\Pandoc\"

set "PATH=c:\Rtools\bin;c:\Rtools\gcc-4.6.3\bin;C:\Program Files\R\R-3.2.2\bin;%PATH%"

rmdir gran_build_libs /S /Q
mkdir gran_build_libs

Rscript -e "install.packages('devtools', lib='gran_build_libs', repos='http://cran.us.r-project.org')"
Rscript -e "library(devtools);install_github('USGS-R/grantools');library(granbuild);jenkins_build_bin()"

Reporting bugs

Please consider reporting bugs and asking questions on the Issues page:

https://github.com/USGS-R/grantools/issues

Follow @USGS_R on Twitter for updates on USGS R packages:

Twitter Follow

Disclaimer

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

Although this software program has been used by the U.S. Geological Survey (USGS), no warranty, expressed or implied, is made by the USGS or the U.S. Government as to the accuracy and functioning of the program and related program material nor shall the fact of distribution constitute any such warranty, and no responsibility is assumed by the USGS in connection therewith.

This software is provided "AS IS."

CC0