Skip to content

Commit 3d540cb

Browse files
authored
Merge pull request #6 from dynverse/devel
Merge devel into master
2 parents 0979184 + 57d6306 commit 3d540cb

37 files changed

+499
-302
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,6 @@
1010
^appveyor\.yml$
1111
^containers$
1212
^README\.Rmd$
13+
^LICENSE\.md$
14+
^LICENSE\.md$
15+
^\.github$

.github/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/R-CMD-check.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
- devel
6+
pull_request:
7+
branches:
8+
- master
9+
schedule:
10+
- cron: "0 0 * * 1"
11+
12+
name: R-CMD-check
13+
14+
jobs:
15+
R-CMD-check:
16+
runs-on: ${{ matrix.config.os }}
17+
if: "!contains(github.event.head_commit.message, 'ci skip')"
18+
name: ${{ matrix.config.os }} (${{ matrix.config.r }})
19+
20+
strategy:
21+
fail-fast: false
22+
matrix:
23+
config:
24+
- {os: windows-latest, r: 'release'}
25+
- {os: macos-latest, r: 'release'}
26+
- {os: ubuntu-16.04, r: '3.6', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
27+
- {os: ubuntu-16.04, r: 'release', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
28+
- {os: ubuntu-16.04, r: 'devel', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
29+
30+
env:
31+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
32+
RSPM: ${{ matrix.config.rspm }}
33+
34+
steps:
35+
- uses: actions/checkout@v2
36+
37+
- uses: r-lib/actions/setup-r@master
38+
with:
39+
r-version: ${{ matrix.config.r }}
40+
41+
- uses: r-lib/actions/setup-pandoc@master
42+
43+
- name: Query dependencies
44+
run: |
45+
install.packages('remotes')
46+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
47+
shell: Rscript {0}
48+
49+
- name: Cache R packages
50+
if: runner.os != 'Windows'
51+
uses: actions/cache@v1
52+
with:
53+
path: ${{ env.R_LIBS_USER }}
54+
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('.github/depends.Rds') }}
55+
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
56+
57+
- name: Install system dependencies
58+
if: runner.os == 'Linux'
59+
env:
60+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
61+
run: |
62+
Rscript -e "remotes::install_github('r-hub/sysreqs')"
63+
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
64+
sudo -s eval "$sysreqs"
65+
66+
- name: Install dependencies
67+
run: |
68+
remotes::install_deps(dependencies = TRUE)
69+
remotes::install_cran("rcmdcheck")
70+
shell: Rscript {0}
71+
72+
- name: Check
73+
env:
74+
_R_CHECK_CRAN_INCOMING_REMOTE_: false
75+
run: rcmdcheck::rcmdcheck(args = c("--no-manual", "--as-cran"), error_on = "warning", check_dir = "check")
76+
shell: Rscript {0}
77+
78+
- name: Upload check results
79+
if: failure()
80+
uses: actions/upload-artifact@master
81+
with:
82+
name: ${{ runner.os }}-r${{ matrix.config.r }}-results
83+
path: check
84+
Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
- devel
6+
pull_request:
7+
branches:
8+
- master
9+
10+
name: test-coverage
11+
12+
jobs:
13+
test-coverage:
14+
runs-on: ubuntu-latest
15+
if: "!contains(github.event.head_commit.message, 'ci skip')"
16+
steps:
17+
- uses: actions/checkout@v2
18+
19+
- uses: r-lib/actions/setup-r@master
20+
21+
- uses: r-lib/actions/setup-pandoc@master
22+
23+
- name: Query dependencies
24+
run: |
25+
install.packages('remotes')
26+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2)
27+
shell: Rscript {0}
28+
29+
- name: Cache R packages
30+
uses: actions/cache@v1
31+
with:
32+
path: ${{ env.R_LIBS_USER }}
33+
key: ubuntu-r-release-${{ hashFiles('depends.Rds') }}
34+
restore-keys: ubuntu-r-release-
35+
36+
- name: Install system dependencies
37+
if: runner.os == 'Linux'
38+
env:
39+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
40+
run: |
41+
Rscript -e "remotes::install_github('rcannood/sysreqs')"
42+
sysreqs=$(Rscript -e "pkgs <- unique(c(sysreqs:::get_cran_sysreqs(sysreqs:::get_cran_deps('covr')), sysreqs::sysreqs('DESCRIPTION'))); cat(sysreqs:::sysreq_commands_pkgs(pkgs))")
43+
sudo -s eval "$sysreqs"
44+
45+
- name: Install dependencies
46+
run: |
47+
install.packages(c("remotes"))
48+
remotes::install_deps(dependencies = TRUE)
49+
remotes::install_cran("covr")
50+
shell: Rscript {0}
51+
52+
- name: Test coverage
53+
run: covr::codecov()
54+
shell: Rscript {0}
55+

.travis.yml

Lines changed: 0 additions & 10 deletions
This file was deleted.

DESCRIPTION

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Package: dynparam
22
Type: Package
33
Title: Creating Meta-Information for Parameters
4-
Version: 1.0.0
4+
Version: 1.0.2
55
Authors@R: c(
66
person(
77
"Robrecht",
@@ -24,9 +24,9 @@ Description: Provides tools for describing parameters of algorithms in an abstra
2424
Description can include an id, a description, a domain (range or list of values),
2525
and a default value. 'dynparam' can also convert parameter sets to a 'ParamHelpers' format,
2626
in order to be able to use 'dynparam' in conjunction with 'mlrMBO'.
27-
License: GPL-3
27+
License: MIT + file LICENSE
2828
LazyData: TRUE
29-
RoxygenNote: 6.1.1
29+
RoxygenNote: 7.1.1
3030
Roxygen: list(markdown = TRUE)
3131
Encoding: UTF-8
3232
Depends:
@@ -36,15 +36,12 @@ Imports:
3636
carrier,
3737
dplyr,
3838
dynutils (>= 1.0.2),
39-
Hmisc,
4039
magrittr,
4140
purrr,
4241
stringr,
43-
testthat,
4442
tibble,
4543
tidyr
4644
Suggests:
45+
lhs,
4746
ParamHelpers,
48-
lhs
49-
Remotes:
50-
dynverse/dynutils@master
47+
testthat

LICENSE

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
YEAR: 2014-2020
2+
COPYRIGHT HOLDER: Robrecht Cannoodt, Wouter Saelens

LICENSE.md

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# MIT License
2+
3+
Copyright (c) 2014-2020 Robrecht Cannoodt, Wouter Saelens
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

NAMESPACE

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ import(dplyr)
6262
import(dynutils)
6363
import(purrr)
6464
import(tidyr)
65-
importFrom(Hmisc,capitalize)
6665
importFrom(carrier,crate)
6766
importFrom(magrittr,"%$%")
6867
importFrom(magrittr,"%<>%")

NEWS.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# dynparam 1.0.2 (04-01-2021)
2+
3+
* MINOR CHANGES: Set `check.environment` to `FALSE` in unit tests to fix breaking changes in R devel.
4+
5+
# dynparam 1.0.1 (24-06-2020)
6+
* MINOR CHANGES: Move testthat to Suggests.
7+
* MINOR CHANGES: Use `expect_equal(., ., tolerance = .)` instead of `expect_lte(abs(. - .), .)` in tests.
8+
9+
# dynparam 1.0.0 (02-04-2019)
10+
11+
* INITIAL RELEASE: dynparam helps describe method parameters.

0 commit comments

Comments
 (0)