Skip to content

Commit 32bfc75

Browse files
committed
pkgdown basics
version 0.2 #26
1 parent 13972ef commit 32bfc75

File tree

4 files changed

+109
-0
lines changed

4 files changed

+109
-0
lines changed

.Rbuildignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,6 @@
44
^LICENSE\.md$
55
^\.github$
66
^inst/varia$
7+
^_pkgdown\.yml$
8+
^docs$
9+
^pkgdown$

.github/workflows/pkgdown.yaml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
2+
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
3+
on:
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
release:
8+
types: [published]
9+
workflow_dispatch:
10+
11+
name: pkgdown.yaml
12+
13+
permissions: read-all
14+
15+
jobs:
16+
pkgdown:
17+
runs-on: ubuntu-latest
18+
# Only restrict concurrency for non-PR jobs
19+
concurrency:
20+
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
21+
env:
22+
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
23+
permissions:
24+
contents: write
25+
steps:
26+
- uses: actions/checkout@v4
27+
28+
- uses: r-lib/actions/setup-pandoc@v2
29+
30+
- uses: r-lib/actions/setup-r@v2
31+
with:
32+
use-public-rspm: true
33+
34+
- uses: r-lib/actions/setup-r-dependencies@v2
35+
with:
36+
extra-packages: any::pkgdown, local::.
37+
needs: website
38+
39+
- name: Build site
40+
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
41+
shell: Rscript {0}
42+
43+
- name: Deploy to GitHub pages 🚀
44+
if: github.event_name != 'pull_request'
45+
uses: JamesIves/github-pages-deploy-action@v4.5.0
46+
with:
47+
clean: false
48+
branch: gh-pages
49+
folder: docs

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,3 +7,4 @@
77
*.so
88
*.so
99
*.o
10+
docs

_pkgdown.yml

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
url: http://bvarPANELs.org/bvarPANELs/
2+
template:
3+
bootstrap: 5
4+
5+
development:
6+
mode: auto
7+
8+
navbar:
9+
structure:
10+
right: [github]
11+
12+
13+
reference:
14+
- title: "bvarPANELs: Forecasting with Bayesian Hierarchical Panel VARs"
15+
desc: "Browse package information"
16+
- contents:
17+
- bvarPANELs-package
18+
- bvarPANELs
19+
- title: "Data"
20+
desc: "Upload sample data set"
21+
- contents:
22+
- ilo_dynamic_panel
23+
- ilo_exogenous_variables
24+
- ilo_exogenous_forecasts
25+
- ilo_conditional_forecasts
26+
- title: "Model specification"
27+
desc: "Choose a model to work with"
28+
- contents:
29+
- matches("specify_bvarPANEL")
30+
- title: "More detailed model specification"
31+
desc: "Adjust or inspect the specified model"
32+
- contents:
33+
- matches("specify_prior")
34+
- matches("specify_start")
35+
- matches("specify_panel")
36+
- title: "Estimation"
37+
desc: "Run Bayesian estimation of your model and inspect the outputs"
38+
- contents:
39+
- matches("estimate")
40+
- matches("specify_posterior")
41+
- title: "Posterior summaries"
42+
desc: "Analyse the posterior summaries of the posterior estimation outcomes"
43+
- contents:
44+
- matches("summary")
45+
- title: "Forecasting"
46+
desc: "Predict future values of your variables"
47+
- contents:
48+
- matches("forecast")
49+
- title: "Structural analyses"
50+
desc: "Compute interpretable outcomes"
51+
- contents:
52+
- matches("compute")
53+
- title: "Plot your results"
54+
desc: "Prepare beautiful and informative plots for your analyses"
55+
- contents:
56+
- matches("plot")

0 commit comments

Comments
 (0)