-
-
Notifications
You must be signed in to change notification settings - Fork 36
Reformat pkgdown workflow #292
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
34 commits
Select commit
Hold shift + click to select a range
814482a
Updated pkgdown setup with GHA and building in master branch
VisruthSK 72bb3e5
Added favicons, built site
VisruthSK 9e785bc
Added a dependency for vignettes
VisruthSK 743a3cc
Updated dependencies again
VisruthSK 2e472de
Install loo before building vignettes to hopefully resolve some depen…
VisruthSK e010720
Adding all suggested dependencies
VisruthSK f15e6dd
Added BH and some params to needs
VisruthSK 94f300b
Added some more dependencies
VisruthSK f10b83e
Trying to minimize computations and cache results
VisruthSK a878613
Only run on releases
VisruthSK 4a5110f
Old website
VisruthSK 7235e08
Run dontrun examples
VisruthSK 738f5e6
Deploy dev site alongside release site
VisruthSK 7d23048
Updated CV link
VisruthSK deb68a7
Don't build site on PRs and removed cache
VisruthSK 7060851
Disable push trigger in pkgdown workflow
VisruthSK 377ee83
Moved to BS5 and used Stan theme
VisruthSK fe7c6b7
Merge branch 'master' into reformat-packagedown-workflow
VisruthSK c227bbf
Make sure package gets installed and runs action in a new process.
VisruthSK 46089cb
Typo
VisruthSK 6a16914
Run vignettes by setting environment variable
VisruthSK cb1aaa9
Correct autocommit of generated files.
VisruthSK f74670a
Skipping two problematic vignettes; checked in built site.
VisruthSK 56caf30
pkgdown: update docs [skip CI]
VisruthSK 9cebec9
Merge pull request #302 from stan-dev/master
VisruthSK bdefc8a
Don't skip problem vignettes.
VisruthSK 38b229e
Build site in gh-pages branch automatically
VisruthSK 09a6e8e
Don't delete existing files [ci skip]
VisruthSK 89bdf92
Merge pull request #304 from stan-dev/master
VisruthSK 746e326
Correct DESCRIPTION to point to correct theming repository
VisruthSK cc3a80a
Fixed template package name
VisruthSK aab2fe2
Trying to simplify dependencies for build
VisruthSK 3bc53fd
Adding pkgdown-config repo as a remote
VisruthSK e840f59
Point to pkgdown-config only in GHA
VisruthSK File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -21,3 +21,5 @@ vignettes/loo2-non-factorizable_cache/* | |
|
|
||
| ^CRAN-SUBMISSION$ | ||
| ^release-prep\.R$ | ||
| ^_pkgdown\.yml$ | ||
| ^pkgdown$ | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # 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: | ||
| # build dev site on merged pushes | ||
| push: | ||
| branches: [main, master] | ||
| # build full site on releases | ||
| release: | ||
| types: [published] | ||
| workflow_dispatch: | ||
|
|
||
| name: pkgdown.yaml | ||
|
|
||
| concurrency: | ||
| group: pages | ||
| cancel-in-progress: true | ||
|
|
||
| jobs: | ||
| pkgdown: | ||
| runs-on: ubuntu-latest | ||
| env: | ||
| GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
| permissions: | ||
| contents: 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::., any::withr, stan-dev/pkgdown-config | ||
|
|
||
| # - uses: actions/cache@v4 | ||
| # with: | ||
| # path: vignettes/**/_cache | ||
| # key: knitr-${{ runner.os }}-${{ hashFiles('vignettes/**/*.Rmd') }} | ||
|
|
||
| - name: Build site | ||
| run: | | ||
| withr::with_envvar( | ||
| c("NOT_CRAN" = "true"), # this should already be set by setup-r@v2? keeping because vignettes don't build otherwise | ||
| pkgdown::build_site_github_pages( | ||
| lazy = FALSE, # change to TRUE if runner times out. | ||
| run_dont_run = TRUE, | ||
| new_process = TRUE | ||
| ) | ||
| ) | ||
| shell: Rscript {0} | ||
|
|
||
| - name: Deploy to GitHub pages 🚀 | ||
| uses: JamesIves/github-pages-deploy-action@v4.5.0 | ||
| with: | ||
| clean: false | ||
| branch: gh-pages | ||
| folder: docs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,129 @@ | ||
| url: https://mc-stan.org/loo/ | ||
| destination: "docs/" | ||
| template: | ||
| package: pkgdownconfig | ||
| development: | ||
| mode: auto | ||
|
|
||
| navbar: | ||
| title: "loo" | ||
|
|
||
| structure: | ||
| left: [home, vignettes, functions, pkgs, news, stan] | ||
| right: [search, bluesky, twitter, forum, github, lightswitch] | ||
|
|
||
| components: | ||
| home: | ||
| icon: fa-home fa-lg | ||
| href: index.html | ||
| vignettes: | ||
| text: Vignettes | ||
| href: articles/index.html | ||
| functions: | ||
| text: Functions | ||
| href: reference/index.html | ||
| pkgs: | ||
| text: Other Packages | ||
| menu: | ||
| - text: rstan | ||
| href: https://mc-stan.org/rstan | ||
| - text: cmdstanr | ||
| href: https://mc-stan.org/cmdstanr | ||
| - text: rstanarm | ||
| href: https://mc-stan.org/rstanarm | ||
| - text: bayesplot | ||
| href: https://mc-stan.org/bayesplot | ||
| - text: shinystan | ||
| href: https://mc-stan.org/shinystan | ||
| - text: projpred | ||
| href: https://mc-stan.org/projpred | ||
| - text: rstantools | ||
| href: https://mc-stan.org/rstantools | ||
| - text: posterior | ||
| href: https://mc-stan.org/posterior | ||
|
|
||
| articles: | ||
| - title: Getting started | ||
| desc: | | ||
| These vignettes demonstrate how to use the **loo** package to perform approximate leave-one-out cross-validation or exact K-fold cross-validation for Bayesian models fit using MCMC, compare models on estimated predictive performance on new data, and weight models for averaging predictive distributions. | ||
| contents: | ||
| - loo2-example | ||
| - loo2-weights | ||
| - loo2-with-rstan | ||
| - loo2-elpd | ||
| - title: Additional topics | ||
| desc: | | ||
| These vignettes demonstrate how to use the **loo** package for more complicated scenarios including models with non-factorized likelihoods, forecasting models, models fit to very large datasets, and more. | ||
| contents: | ||
| - loo2-non-factorized | ||
| - loo2-lfo | ||
| - loo2-large-data | ||
| - loo2-moment-matching | ||
| - loo2-mixis | ||
| - title: Frequently asked questions | ||
| contents: | ||
| - faq | ||
|
|
||
| external-articles: | ||
| - name: faq | ||
| title: Cross-validation FAQ | ||
| description: Answers to frequently asked questions about cross-validation and the **loo** package (links to external site). | ||
| href: https://users.aalto.fi/~ave/CV-FAQ.html | ||
|
|
||
| reference: | ||
| - title: Package description, glossary, and included data sets | ||
| contents: | ||
| - loo-package | ||
| - loo-glossary | ||
| - loo-datasets | ||
| - title: Approximate LOO-CV | ||
| desc: | | ||
| Approximate LOO-CV, Pareto smoothed importance sampling (PSIS), and diagnostics. | ||
| contents: | ||
| - loo | ||
| - loo_subsample | ||
| - loo_approximate_posterior | ||
| - loo_moment_match | ||
| - loo_moment_match_split | ||
| - E_loo | ||
| - psis | ||
| - ap_psis | ||
| - tis | ||
| - sis | ||
| - importance_sampling | ||
| - weights.importance_sampling | ||
| - pareto-k-diagnostic | ||
| - title: Model comparison weighting/averaging | ||
| desc: | | ||
| Functions for comparing models and computing model weights via stacking of predictive distributions or pseudo-BMA weighting. | ||
| contents: | ||
| - loo_compare | ||
| - loo_model_weights | ||
| - stacking_weights | ||
| - pseudobma_weights | ||
| - title: Helper functions for K-fold CV | ||
| contents: | ||
| - kfold_split_random | ||
| - kfold_split_stratified | ||
| - kfold_split_grouped | ||
| - kfold | ||
| - elpd | ||
| - title: Other functions | ||
| contents: | ||
| - loo_predictive_metric | ||
| - crps | ||
| - elpd | ||
| - waic | ||
| - extract_log_lik | ||
| - pointwise | ||
| - relative_eff | ||
| - gpdfit | ||
| - starts_with("example_loglik") | ||
| - print.loo | ||
| - nobs.psis_loo_ss | ||
| - obs_idx | ||
| - update.psis_loo_ss | ||
| - title: Deprecated functions | ||
| contents: | ||
| - compare | ||
| - psislw | ||
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| { | ||
| "name": "", | ||
| "short_name": "", | ||
| "icons": [ | ||
| { | ||
| "src": "/web-app-manifest-192x192.png", | ||
| "sizes": "192x192", | ||
| "type": "image/png", | ||
| "purpose": "maskable" | ||
| }, | ||
| { | ||
| "src": "/web-app-manifest-512x512.png", | ||
| "sizes": "512x512", | ||
| "type": "image/png", | ||
| "purpose": "maskable" | ||
| } | ||
| ], | ||
| "theme_color": "#ffffff", | ||
| "background_color": "#ffffff", | ||
| "display": "standalone" | ||
| } |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,6 @@ | ||
| knitr | ||
| loo | ||
| Rcpp | ||
| brms | ||
| bayesplot | ||
| ggplot2 |
Binary file added
BIN
+3.08 KB
vignettes/loo2-non-factorized_cache/html/approx_2ee2f96c95d705e8be805536a698f859.RData
Binary file not shown.
Binary file added
BIN
+7.06 MB
vignettes/loo2-non-factorized_cache/html/approx_2ee2f96c95d705e8be805536a698f859.rdb
Binary file not shown.
Binary file added
BIN
+352 Bytes
vignettes/loo2-non-factorized_cache/html/approx_2ee2f96c95d705e8be805536a698f859.rdx
Binary file not shown.
Binary file added
BIN
+3.8 KB
...ttes/loo2-non-factorized_cache/html/brms-stan-code_b51808154bce43480982ebe22dde4b4a.RData
Binary file not shown.
Empty file.
Binary file added
BIN
+125 Bytes
vignettes/loo2-non-factorized_cache/html/brms-stan-code_b51808154bce43480982ebe22dde4b4a.rdx
Binary file not shown.
Binary file added
BIN
+3.04 KB
vignettes/loo2-non-factorized_cache/html/compare_efefb91ddb2ded97b7445be2de695b30.RData
Binary file not shown.
Binary file added
BIN
+928 Bytes
vignettes/loo2-non-factorized_cache/html/compare_efefb91ddb2ded97b7445be2de695b30.rdb
Binary file not shown.
Binary file added
BIN
+143 Bytes
vignettes/loo2-non-factorized_cache/html/compare_efefb91ddb2ded97b7445be2de695b30.rdx
Binary file not shown.
Binary file added
BIN
+2.85 KB
vignettes/loo2-non-factorized_cache/html/data_5389973e58d32982c81404b759f823ae.RData
Binary file not shown.
Empty file.
Binary file added
BIN
+125 Bytes
vignettes/loo2-non-factorized_cache/html/data_5389973e58d32982c81404b759f823ae.rdx
Binary file not shown.
Binary file added
BIN
+3.28 KB
vignettes/loo2-non-factorized_cache/html/exact-loo-cv_04934db221750a989f65ac381094ebcc.RData
Binary file not shown.
Binary file added
BIN
+2.8 MB
vignettes/loo2-non-factorized_cache/html/exact-loo-cv_04934db221750a989f65ac381094ebcc.rdb
Binary file not shown.
Binary file added
BIN
+2.18 KB
vignettes/loo2-non-factorized_cache/html/exact-loo-cv_04934db221750a989f65ac381094ebcc.rdx
Binary file not shown.
Binary file added
BIN
+2.78 KB
vignettes/loo2-non-factorized_cache/html/fit_b8d879292b60713e2183425ad4e6c6bd.RData
Binary file not shown.
Binary file added
BIN
+2.62 MB
vignettes/loo2-non-factorized_cache/html/fit_b8d879292b60713e2183425ad4e6c6bd.rdb
Binary file not shown.
Binary file added
BIN
+1.74 KB
vignettes/loo2-non-factorized_cache/html/fit_b8d879292b60713e2183425ad4e6c6bd.rdx
Binary file not shown.
Binary file added
BIN
+2.83 KB
vignettes/loo2-non-factorized_cache/html/fit_dummy_40aabe9fb1e09a22fe3bd362ce4e1949.RData
Binary file not shown.
Binary file added
BIN
+2.13 MB
vignettes/loo2-non-factorized_cache/html/fit_dummy_40aabe9fb1e09a22fe3bd362ce4e1949.rdb
Binary file not shown.
Binary file added
BIN
+2.01 KB
vignettes/loo2-non-factorized_cache/html/fit_dummy_40aabe9fb1e09a22fe3bd362ce4e1949.rdx
Binary file not shown.
Binary file added
BIN
+3.15 KB
vignettes/loo2-non-factorized_cache/html/lpdf_dfa92b314e80d2ecd7fa47fffe54e486.RData
Binary file not shown.
Empty file.
Binary file added
BIN
+125 Bytes
vignettes/loo2-non-factorized_cache/html/lpdf_dfa92b314e80d2ecd7fa47fffe54e486.rdx
Binary file not shown.
Binary file added
BIN
+2.99 KB
vignettes/loo2-non-factorized_cache/html/plot-lagsar_9e2f6e3ca72cf79231cc84f2f30276b8.RData
Binary file not shown.
Binary file added
BIN
+35.7 KB
vignettes/loo2-non-factorized_cache/html/plot-lagsar_9e2f6e3ca72cf79231cc84f2f30276b8.rdb
Binary file not shown.
Binary file added
BIN
+160 Bytes
vignettes/loo2-non-factorized_cache/html/plot-lagsar_9e2f6e3ca72cf79231cc84f2f30276b8.rdx
Binary file not shown.
Binary file added
BIN
+3.04 KB
vignettes/loo2-non-factorized_cache/html/psisloo_f91480de3a39d12fe3e7ffa8b962cf0f.RData
Binary file not shown.
Binary file added
BIN
+2.51 KB
vignettes/loo2-non-factorized_cache/html/psisloo_f91480de3a39d12fe3e7ffa8b962cf0f.rdb
Binary file not shown.
Binary file added
BIN
+147 Bytes
vignettes/loo2-non-factorized_cache/html/psisloo_f91480de3a39d12fe3e7ffa8b962cf0f.rdx
Binary file not shown.
Binary file added
BIN
+2.79 KB
vignettes/loo2-non-factorized_cache/html/pt4_fa4f1c94caa6de510cc9286b6924926b.RData
Binary file not shown.
Binary file added
BIN
+100 Bytes
vignettes/loo2-non-factorized_cache/html/pt4_fa4f1c94caa6de510cc9286b6924926b.rdb
Binary file not shown.
Binary file added
BIN
+152 Bytes
vignettes/loo2-non-factorized_cache/html/pt4_fa4f1c94caa6de510cc9286b6924926b.rdx
Binary file not shown.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.