From fa628a8dae85a4c31450d10cb15cd2c61780175a Mon Sep 17 00:00:00 2001 From: David Date: Fri, 18 Oct 2024 17:29:43 +0100 Subject: [PATCH] build site --- .github/workflows/pkgdown.yaml | 4 ++-- README.md | 2 +- docs/articles/model_define.html | 9 ++++++++- docs/pkgdown.yml | 2 +- {images => man/figures}/schematic_A.png | Bin 5 files changed, 12 insertions(+), 5 deletions(-) rename {images => man/figures}/schematic_A.png (100%) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index e049d56e..0670ef21 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -36,11 +36,11 @@ jobs: - 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: JamesIves/github-pages-deploy-action@v4.4.1 with: clean: false branch: gh-pages - folder: _site # Jekyll outputs to the _site folder by default \ No newline at end of file + folder: docs # Jekyll outputs to the _site folder by default \ No newline at end of file diff --git a/README.md b/README.md index affd1e11..8a81e2f5 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # serojump -![Schematic of the methods behind the `serojump` package](./images/schematic_A.png) +![Schematic of the methods behind the `serojump` package](./man/figures/schematic_A.png) ## Overview diff --git a/docs/articles/model_define.html b/docs/articles/model_define.html index ffe1933b..d9e15477 100644 --- a/docs/articles/model_define.html +++ b/docs/articles/model_define.html @@ -400,9 +400,16 @@

4. Run the model! model_name = "ex1" ) +# Using more than one core might fail on windows, +if (.Platform$OS.type == "windows") { + mc.cores <- 1 +} else { + mc.cores <- 2 # use as many as available, preferably 4. +} + rj_settings <- list( numberChainRuns = 4, - numberCores = 2, + numberCores = mc.cores, iterations = 2000, burninPosterior = 1000, thin = 1 diff --git a/docs/pkgdown.yml b/docs/pkgdown.yml index 42b32eec..c4739a84 100644 --- a/docs/pkgdown.yml +++ b/docs/pkgdown.yml @@ -5,4 +5,4 @@ articles: data_format: data_format.html model_define: model_define.html sim_recovery: sim_recovery.html -last_built: 2024-10-18T15:11Z +last_built: 2024-10-18T16:25Z diff --git a/images/schematic_A.png b/man/figures/schematic_A.png similarity index 100% rename from images/schematic_A.png rename to man/figures/schematic_A.png