Skip to content

Commit 0b5cf0f

Browse files
committed
build package website using pkgdown
1 parent c0533e8 commit 0b5cf0f

107 files changed

Lines changed: 5663 additions & 17 deletions

File tree

Some content is hidden

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

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44

55
^data-raw$
66

7+
^docs$
8+
^_pkgdown.yml$
9+
710
Makefile$
811

912
^vignettes/.+_cache$

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ Description: The Handbook of Infectious Disease Data Analysis ("HIDDA")
1616
'surveillance' and 'prophet',
1717
and an age-stratified analysis of norovirus counts in Berlin
1818
using the multivariate time-series model "hhh4" from 'surveillance'.
19-
URL: https://github.com/HIDDA/forecasting
19+
URL: https://HIDDA.github.io/forecasting, https://github.com/HIDDA/forecasting
2020
BugReports: https://github.com/HIDDA/forecasting/issues
2121
Depends: R (>= 3.2.0)
2222
Imports: grDevices, graphics, stats, utils, zoo, scoringRules (>= 0.9.4)

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
################################################################################
22
## Useful rules to build, check and install an R source package
33
##
4-
## Copyright (C) 2012,2014-2017 Sebastian Meyer
4+
## Copyright (C) 2012,2014-2018 Sebastian Meyer
55
################################################################################
66

77
## define variable for R to enable 'make check R=R-devel'
@@ -43,5 +43,9 @@ check: build
4343
_R_CHECK_CRAN_INCOMING_REMOTE_=FALSE _R_CHECK_EXAMPLE_TIMING_THRESHOLD_=2 $R CMD check --as-cran --timings ${PKG}_${VERSION}.tar.gz
4444
@$(check-report-warnings-in-examples)
4545

46+
## pkgdown documentation
47+
docs:
48+
$R --no-restore --no-save --no-init-file --slave -e "pkgdown::build_site()"
49+
4650
## almost all targets are "phony"
47-
.PHONY: document extra_vignettes build install check
51+
.PHONY: document extra_vignettes build install check docs

README.md

Lines changed: 16 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -7,35 +7,37 @@ by Leonhard Held and Sebastian Meyer.
77
The R package **HIDDA.forecasting** provides the data and code to
88
reproduce results from the two applications presented in that chapter:
99

10-
1. Univariate forecasting of Swiss ILI counts,
11-
available as `data("CHILI", package = "HIDDA.forecasting")`, using
10+
1. Univariate forecasting of
11+
[Swiss ILI counts](https://HIDDA.github.io/forecasting/articles/CHILI.html)
12+
using
1213

1314
* [**forecast**](https://CRAN.R-project.org/package=forecast)`::arima()`
15+
--> `vignette("CHILI_arima")`
1416

1517
* [**glarma**](https://CRAN.R-project.org/package=glarma)`::glarma()`
18+
--> `vignette("CHILI_glarma")`
1619

1720
* [**surveillance**](https://CRAN.R-project.org/package=surveillance)`::hhh4()`
21+
--> `vignette("CHILI_hhh4")`
1822

1923
* [**prophet**](https://CRAN.R-project.org/package=prophet)`::prophet()`
24+
--> `vignette("CHILI_prophet")`
2025

21-
2. Age-stratified analysis of norovirus counts in Berlin, available from
22-
[**hhh4contacts**](https://CRAN.R-project.org/package=hhh4contacts)`::noroBE()`,
23-
using the multivariate time-series model `hhh4` from **surveillance**
26+
* experimental [**kcde**](https://github.com/reichlab/kcde)`::kcde()`
27+
--> `vignette("CHILI_kcde")`
2428

29+
* and [**MASS**](https://CRAN.R-project.org/package=MASS)`::fitdistr()` for naive reference forecasts
30+
--> `vignette("CHILI_naive")`
2531

26-
## Documentation
27-
28-
The package contains several vignettes which document each of the methods
29-
applied in the book chapter. An online version of the documentation is
30-
available at
31-
32-
<!-- TODO: pkgdown -->
32+
2. Age-stratified analysis of norovirus counts in Berlin using "hhh4"
33+
--> `vignette("BNV")`
3334

3435

3536
## Installation
3637

37-
To compile the vignettes on your machine, you can install
38-
**HIDDA.forecasting** and the other required packages with
38+
To compile the [vignettes](https://HIDDA.github.io/forecasting/articles/)
39+
on your machine, you can install **HIDDA.forecasting** and the other
40+
required packages with
3941

4042
```r
4143
# install.packages("remotes")

_pkgdown.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
navbar:
2+
components:
3+
articles:
4+
text: Vignettes
5+
menu: ~
6+
href: articles/index.html
7+
8+
reference:
9+
- title: Datasets
10+
desc: >
11+
The R package **HIDDA.forecasting** provides the Swiss ILI data (`CHILI`).
12+
The age-stratified norovirus time series data analyzed in `vignette("BNV")`
13+
are available from the [**hhh4contacts**](https://CRAN.R-project.org/package=hhh4contacts) package.
14+
contents:
15+
- CHILI
16+
- title: Fanplot with scores
17+
contents:
18+
- osaplot
19+
- title: Simulation-based forecast distributions
20+
contents:
21+
- dhhh4sims
22+
- logs_hhh4sims
23+
- dnbmix
24+
- logs_nbmix
25+
- title: Wrapper functions for scoringRules
26+
contents:
27+
- scores_lnorm
28+
- scores_sample
29+
- title: Auxiliary functions for forecast::arima
30+
contents:
31+
- update.Arima
32+
33+
articles:
34+
- title: Univariate Forecasting
35+
contents:
36+
- CHILI
37+
- CHILI_arima
38+
- CHILI_glarma
39+
- CHILI_hhh4
40+
- CHILI_naive
41+
- CHILI_prophet
42+
- title: Multivariate Forecasting
43+
contents:
44+
- BNV
45+
- title: Experimental extras
46+
contents:
47+
- extra/CHILI_kcde
48+
- extra/CHILI_tscount
49+
- extra/BNV_addon

0 commit comments

Comments
 (0)