Skip to content

Commit

Permalink
added test and changed version in workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Bruder committed Nov 24, 2023
1 parent 9587dcf commit 8ab0474
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
steps:
- uses: actions/checkout@v2

- uses: r-lib/actions/setup-r@v1
- uses: r-lib/actions/setup-r@v2

- uses: r-lib/actions/setup-pandoc@v1
- uses: r-lib/actions/setup-pandoc@v2

- name: Query dependencies
run: |
Expand Down
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.2616951.svg)](https://doi.org/10.5281/zenodo.2616951)
[![R-CMD-check](https://github.com/imbi-heidelberg/adoptr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/imbi-heidelberg/adoptr/actions/workflows/R-CMD-check.yaml)
[![Codecov test coverage](https://codecov.io/gh/kkmann/adoptr/branch/master/graph/badge.svg)](https://codecov.io/gh/kkmann/adoptr?branch=master)
[![Codecov test coverage](https://codecov.io/gh/imbi-heidelberg/adoptr/branch/master/graph/badge.svg)](https://codecov.io/gh/imbi-heidelberg/adoptr?branch=master)
[![CRAN status](https://www.r-pkg.org/badges/version/adoptr)](https://cran.r-project.org/package=adoptr)
[![](http://cranlogs.r-pkg.org/badges/last-month/adoptr?color=green)](https://cran.r-project.org/package=adoptr)
[![](http://cranlogs.r-pkg.org/badges/grand-total/adoptr?color=green)](https://cran.r-project.org/package=adoptr)


# adoptr <a href='https://github.com/kkmann/adoptr'><img src='man/figures/logo.png' align="right" height="139" /></a>
# adoptr <a href='https://github.com/imbi-heidelberg/adoptr'><img src='man/figures/logo.png' align="right" height="139" /></a>


Adaptive optimal two-stage designs for clinical trials with one or two arms.
Expand All @@ -30,13 +30,13 @@ devtools::install_github("imbi-heidelberg/adoptr")

## Documentation

The documentation is hosted at https://kkmann.github.io/adoptr.
The documentation is hosted at https://imbi-heidelberg.github.io/adoptr.



## Validation Report

We provide an extensive validation report for **adoptr** which is implemented
using the **bookdown** package.
The sources are available at https://github.com/kkmann/adoptr-validation-report and
the last build version is hosted at https://kkmann.github.io/adoptr-validation-report.
The sources are available at https://github.com/imbi-heidelberg/adoptr-validation-report and
the last build version is hosted at https://imbi-heidelberg.github.io/adoptr-validation-report.
4 changes: 4 additions & 0 deletions tests/testthat/test_minimize.R
Original file line number Diff line number Diff line change
Expand Up @@ -385,6 +385,10 @@ test_that("initial design works", {
"GroupSequentialDesign")
)

expect_error(
get_initial_design(0.4, 0.2, 0.8, ce = 1, cf = 2)
)


init <- get_initial_design(.4, .025, .2, "two-stage", dist = Normal(F), cf = 0.5,
type_c2 = "constant", ce = 2.5)
Expand Down

0 comments on commit 8ab0474

Please sign in to comment.