Skip to content

Commit 0396ef5

Browse files
pschilPatrick Bachmannmmeierer
authored
Release v0.5.0 (bachmannpatrick#90)
This is the initial release to CRAN. * Use hypergeometric functions from RcppGSL (bachmannpatrick#21) * Consistent naming of R code files (bachmannpatrick#39) * Remove validity methods (bachmannpatrick#40) * Fix large batch of CRAN checks for first release (bachmannpatrick#44) * Default implementations of all clv.model methods stop() (bachmannpatrick#45) * CI setup (bachmannpatrick#52) * Remove single use generics (bachmannpatrick#53) * Bugfix: Fail CI if tests fail (bachmannpatrick#55) * Bugfix: lubridate definition of period years (bachmannpatrick#58) * clvtime epsilon (bachmannpatrick#57) * Bugfix: Disable GSL's error reporting (bachmannpatrick#59) * Setup vignettes (bachmannpatrick#60) * Dyncov "cheating for stability" use data.table (bachmannpatrick#62) * Parallelism setup and explanations (bachmannpatrick#66) * Push documentation (bachmannpatrick#67) * Feature new sampledata (bachmannpatrick#68) * Various important todos (bachmannpatrick#69) * vcov with Moore-Penrose and nearPD (bachmannpatrick#70) * Compare vs BTYD: fitting and prediction (bachmannpatrick#72) * Stubs for WIP models (bachmannpatrick#74) * Remove parameter 'complete' from coef() (bachmannpatrick#75) * Consistent internal names of class instances (bachmannpatrick#76) * Vcov: nearPD after back-transformation (bachmannpatrick#77) * Consistent constructors (bachmannpatrick#82) * Bugfix update walkthrough (bachmannpatrick#79) * Last ToDos before initial release (bachmannpatrick#84) * Plot values backward-looking (bachmannpatrick#87) * Setup github pages (bachmannpatrick#89) * Fixes as demanded by CRAN Co-authored-by: Patrick Bachmann <[email protected]> Co-authored-by: Markus Meierer <[email protected]>
1 parent 04c6161 commit 0396ef5

File tree

260 files changed

+7683
-9515
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

260 files changed

+7683
-9515
lines changed

.DS_Store

-6 KB
Binary file not shown.

.Rbuildignore

+13
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,15 @@
11
^.*\.Rproj$
22
^\.Rproj\.user$
3+
^README\.md$
4+
^README\.rmd$
5+
^Walkthrough\.md$
6+
^Walkthrough\.rmd$
7+
^bibliography\.bib$
8+
^man-roxygen$
9+
^thoughts_parameterhandling\.rtf$
10+
^\.github$
11+
^cran-comments\.md$
12+
^_pkgdown\.yml$
13+
[.]o$
14+
[.]o.tmp$
15+

.github/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.html

.github/workflows/Coverage.yaml

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: coverage
2+
on: pull_request # default to types [opened, synchronize, reopened]
3+
jobs:
4+
coverage-ubuntu-16-04-R-release:
5+
runs-on: ubuntu-16.04
6+
env:
7+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
8+
# to install binaries on ubuntu
9+
RSPM: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: r-lib/actions/setup-r@master
13+
with:
14+
r-version: 'release'
15+
- name: Install system dependencies
16+
env:
17+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
18+
run: |
19+
Rscript -e "install.packages(c('remotes', 'rcmdcheck'))"
20+
Rscript -e "remotes::install_github('r-hub/sysreqs')"
21+
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
22+
sudo -s eval "$sysreqs"
23+
- name: Install package dependencies
24+
run: |
25+
remotes::install_deps(dependencies = TRUE) # installs binaries
26+
# testthat and covr are part of package's Suggests and installed as package dependency.
27+
shell: Rscript {0}
28+
29+
- name: Test coverage
30+
# run: covr::codecov() # uploads to codecov.io
31+
run: covr::package_coverage(type = "tests", quiet = FALSE)
32+
shell: Rscript {0}

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

+80
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,80 @@
1+
name: R-CMD-check
2+
on: push
3+
# CMD checks on win, mac, ubuntu
4+
jobs:
5+
R-CMD-check:
6+
runs-on: ${{ matrix.config.os }}
7+
name: R-CMD-check-${{ matrix.config.os }} (${{ matrix.config.r }})
8+
9+
strategy:
10+
fail-fast: false # dont cancel if one fails, might have differen checks fail on different OS
11+
matrix:
12+
config:
13+
- {os: macOS-latest, r: 'devel'}
14+
- {os: windows-latest, r: 'devel'}
15+
- {os: macOS-latest, r: 'release'}
16+
- {os: windows-latest, r: 'release'}
17+
- {os: ubuntu-16.04, r: 'release', rspm: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"}
18+
env:
19+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
20+
RSPM: ${{ matrix.config.rspm }}
21+
22+
steps:
23+
- uses: actions/checkout@v2
24+
- uses: r-lib/actions/setup-r@master
25+
with:
26+
r-version: ${{ matrix.config.r }}
27+
- name: Query dependencies
28+
run: |
29+
install.packages('remotes')
30+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), "depends.Rds", version = 2)
31+
shell: Rscript {0}
32+
33+
- name: Cache R packages
34+
if: runner.os != 'Windows'
35+
uses: actions/cache@v1
36+
with:
37+
path: ${{ env.R_LIBS_USER }}
38+
key: ${{ runner.os }}-r-${{ matrix.config.r }}-${{ hashFiles('depends.Rds') }}
39+
restore-keys: ${{ runner.os }}-r-${{ matrix.config.r }}-
40+
41+
- name: Install system dependencies
42+
if: runner.os == 'Linux'
43+
env:
44+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
45+
run: |
46+
Rscript -e "remotes::install_github('r-hub/sysreqs')"
47+
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
48+
sudo -s eval "$sysreqs"
49+
sudo apt-get install -y qpdf # qpdf needed on ubuntu
50+
51+
- name: Install tinytex for linux (to build vignettes)
52+
if: runner.os == 'Linux'
53+
run: |
54+
install.packages('tinytex')
55+
tinytex::install_tinytex()
56+
shell: Rscript {0}
57+
58+
- name: Install gsl for mac
59+
if: runner.os == 'macOS'
60+
run: |
61+
brew install gsl
62+
63+
- name: Install package dependencies
64+
run: |
65+
remotes::install_deps(dependencies = TRUE)
66+
# remotes::install_cran(c("RcppGSL", "stringi"), repos = "https://cran.rstudio.com")
67+
remotes::install_cran("rcmdcheck", repos = "https://cran.rstudio.com")
68+
# remove because leads to NOTE. Does not exist on windows
69+
if(file.exists('depends.Rds')) {file.remove('depends.Rds')}
70+
shell: Rscript {0}
71+
72+
- name: Check on Mac / ubuntu
73+
if: runner.os != 'Windows'
74+
run: rcmdcheck::rcmdcheck(args = c("--no-tests", "--as-cran", "--no-manual"), error_on = "warning", check_dir = "check")
75+
shell: Rscript {0}
76+
77+
- name: Check on Windows, without install and vignette
78+
if: runner.os == 'Windows'
79+
run: rcmdcheck::rcmdcheck(args = c("--no-install", "--no-build-vignettes","--no-vignettes","--ignore-vignettes","--no-tests", "--as-cran", "--no-manual"), build_args = c("--no-build-vignettes"), error_on = "warning", check_dir = "check")
80+
shell: Rscript {0}

.github/workflows/Tests.yaml

+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: testthat-tests
2+
on: pull_request # default to types [opened, synchronize, reopened]
3+
jobs:
4+
tests-ubuntu-16-04-R-release:
5+
runs-on: ubuntu-16.04
6+
env:
7+
R_REMOTES_NO_ERRORS_FROM_WARNINGS: true
8+
# to install binaries on ubuntu
9+
RSPM: "https://demo.rstudiopm.com/all/__linux__/xenial/latest"
10+
steps:
11+
- uses: actions/checkout@v2
12+
- uses: r-lib/actions/setup-r@master
13+
with:
14+
r-version: 'release'
15+
- name: Install system dependencies
16+
env:
17+
RHUB_PLATFORM: linux-x86_64-ubuntu-gcc
18+
run: |
19+
Rscript -e "install.packages(c('remotes', 'rcmdcheck'))"
20+
Rscript -e "remotes::install_github('r-hub/sysreqs')"
21+
sysreqs=$(Rscript -e "cat(sysreqs::sysreq_commands('DESCRIPTION'))")
22+
sudo -s eval "$sysreqs"
23+
- name: Install package dependencies
24+
run: |
25+
remotes::install_deps(dependencies = TRUE) # installs binaries
26+
# Install testing stuff (testthat and covr are part of package's Suggests and installed as package dependency)
27+
remotes::install_cran("devtools")
28+
shell: Rscript {0}
29+
30+
- name: Run tests
31+
run: |
32+
library(testthat)
33+
library(devtools)
34+
reporter <- RstudioReporter$new() # has to be defined outside capture.output to still print
35+
capture.output(devtools::test(reporter = reporter, stop_on_failure=TRUE, stop_on_warning=TRUE))
36+
shell: Rscript {0}

.github/workflows/pkgdown.yaml

+46
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
on:
2+
push:
3+
branches: master
4+
5+
name: pkgdown
6+
7+
jobs:
8+
pkgdown:
9+
runs-on: macOS-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
13+
- uses: r-lib/actions/setup-r@master
14+
15+
- uses: r-lib/actions/setup-pandoc@master
16+
17+
- name: Install gsl for mac
18+
run: |
19+
brew install gsl
20+
21+
- name: Query dependencies
22+
run: |
23+
install.packages('remotes')
24+
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
25+
shell: Rscript {0}
26+
27+
- name: Cache R packages
28+
uses: actions/cache@v1
29+
with:
30+
path: ${{ env.R_LIBS_USER }}
31+
key: macOS-r-4.0-0-${{ hashFiles('.github/depends.Rds') }}
32+
restore-keys: macOS-r-4.0-0-
33+
34+
- name: Install dependencies
35+
run: |
36+
install.packages("remotes")
37+
remotes::install_deps(dependencies = TRUE)
38+
remotes::install_dev("pkgdown")
39+
shell: Rscript {0}
40+
41+
- name: Install package
42+
run: R CMD INSTALL .
43+
44+
- name: Deploy package
45+
run: pkgdown::deploy_to_branch(new_process = FALSE)
46+
shell: Rscript {0}

.gitignore

+5
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,8 @@
55
src/*.o
66
src/*.so
77
src/*.dll
8+
src/*.gcda
9+
src/*.gcno
10+
src/*.o.tmp
11+
inst/doc
12+
.DS_Store

CLVTools.Rproj

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ StripTrailingWhitespace: Yes
1818
BuildType: Package
1919
PackageUseDevtools: Yes
2020
PackageInstallArgs: --no-multiarch --with-keep.source
21-
PackageCheckArgs: --no-tests --no-install --as-cran
21+
PackageCheckArgs: --no-tests --as-cran
2222
PackageRoxygenize: rd,collate,namespace

0 commit comments

Comments
 (0)