Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: read
pages: write
id-token: write
steps:
- uses: actions/checkout@v4

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

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: actions/deploy-pages@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
artifact-name: github-pages
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@
.Ruserdata
parameter_trace
.aider*
docs/
4 changes: 3 additions & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Description: Implements nested sequential Monte Carlo (SMC) algorithms for
and Ulam distances. Based on the methodology described in
<doi:10.1214/25-BA1564>.
License: GPL-3
URL: https://osorensen.github.io/BayesMallowsSMC2/
Encoding: UTF-8
LazyData: true
Roxygen: list(markdown = TRUE)
Expand All @@ -29,5 +30,6 @@ Depends:
R (>= 4.1.0)
Suggests:
testthat (>= 3.0.0),
label.switching (>= 1.8)
label.switching (>= 1.8),
pkgdown
Config/testthat/edition: 3
27 changes: 27 additions & 0 deletions _pkgdown.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
url: https://osorensen.github.io/BayesMallowsSMC2/
template:
bootstrap: 5

reference:
- title: Main Functions
desc: Core functions for Bayesian Mallows SMC
contents:
- compute_sequentially
- precompute_topological_sorts

- title: Configuration
desc: Functions to set up parameters and options
contents:
- set_hyperparameters
- set_smc_options

- title: Data Functions
desc: Functions for handling different data types
contents:
- complete_rankings
- mixtures
- pairwise_preferences
- partial_rankings

development:
mode: auto
Loading