Git Product home page Git Product logo

kwb.wtaq's Introduction

kwb.wtaq

Appveyor build status Build Status codecov lifecycle CRAN_Status_Badge R-Universe_Status_Badge Binder

Cite as: DOI

Launch tutorial in cloud RStudio session (and install kwb.wtaq from master branch): Binder

The R package kwb.wtaq provides a programmatic interface to the well drawdown model WTAQ version 2.1 (developed by the U.S. Geological Survey). The WTAQ 2.1 model engine is included in the package, but also available for download as self-extracting win-zip file from the USGS .

1. Install from GitHub

### Optionally: specify GitHub Personal Access Token (GITHUB_PAT)
### See here why this might be important for you:
### https://kwb-r.github.io/kwb.pkgbuild/articles/install.html#set-your-github_pat

# Sys.setenv(GITHUB_PAT = "mysecret_access_token")

# Install package "remotes" from CRAN
if (! require("remotes")) {
  install.packages("remotes", repos = "https://cloud.r-project.org")
}

# Install KWB package 'kwb.wtaq' from GitHub

remotes::install_github(repo = "KWB-R/kwb.wtaq", dependencies = TRUE)

2. Documentation

Release: https://kwb-r.github.io/kwb.wtaq

Development: https://kwb-r.github.io/kwb.wtaq/dev

3. Known issues

Compilation of the WTAQ-2.1 source code (/src) throws the following messages:

  • "Error: Arithmetic overflow converting INTEGER(16) to INTEGER(4) at (1)" (fixed in /src/Makevars with PKG_FFLAGS = -fno-range-check)

  • "Warning: Named COMMON block 'par6' at (1) shall be of the same size" (unfixed help in solving this is highly appreciated!)

However, at least these issues do not cause calculation problems for the test carried out under windows:

### Load/install required packages
if(!require("testthat")) { install.packages("testthat") }
library(kwb.wtaq)
library(testthat)

### Download test file from Github
test_url <- "https://raw.githubusercontent.com/KWB-R/kwb.wtaq/master/tests/testthat/test_windowsCompilation.R"
test_path <- file.path(tempdir(),"test_windowsCompilation.R")
download.file(test_url,destfile = test_path)

### Run test (only working on windows!)
testthat::test_file(test_path)

kwb.wtaq's People

Contributors

hsonne avatar mrustl avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

kwb.wtaq's Issues

How to fix Fortran compilation warning?

Warning: Found the following significant warnings:
  Warning: Named COMMON block 'par6' at (1) shall be of the same size as elsewhere (56 vs 24 bytes)

https://github.com/KWB-R/kwb.wtaq/runs/6848369238?check_suite_focus=true#step:9:48

Added compiler setting:

Warning: Non-portable flags in variable 'PKG_FFLAGS':
  -fno-range-check

https://github.com/KWB-R/kwb.wtaq/runs/6848369238?check_suite_focus=true#step:9:86

Already described here:
https://github.com/KWB-R/kwb.wtaq#3-known-issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.