From 41a4990e79bf57fc0baa23b62d835d643a519338 Mon Sep 17 00:00:00 2001 From: Marsel Scheer Date: Fri, 22 Aug 2025 14:10:17 +0200 Subject: [PATCH] solve misc problems with creating pkgdown --- .github/workflows/pkgdown.yaml | 4 ++-- Makefile | 2 +- R/GOF_model_simulator.R | 1 + R/GOF_model_trainer.R | 4 ++-- _pkgdown.yml | 3 +-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/pkgdown.yaml b/.github/workflows/pkgdown.yaml index 9b1e65c..796e3d0 100644 --- a/.github/workflows/pkgdown.yaml +++ b/.github/workflows/pkgdown.yaml @@ -25,8 +25,8 @@ jobs: needs: website - name: Build site - run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE) - shell: Rscript {0} + run: make pkgdown + shell: bash - name: Deploy to GitHub pages 🚀 if: github.event_name != 'pull_request' diff --git a/Makefile b/Makefile index ec93c25..878a61b 100644 --- a/Makefile +++ b/Makefile @@ -33,7 +33,7 @@ lint: Rscript -e "library(tinytest); pkgload::load_all(); lintr::lint_package()" pkgdown: NAMESPACE - Rscript -e "library(pkgdown); pkgdown::build_site()" + Rscript -e "library(pkgdown); pkgdown::build_site_github_pages(new_process=FALSE, install=FALSE)" README: Rscript -e "pkgload::load_all(); rmarkdown::render(input='README.Rmd', output_format='md_document')" diff --git a/R/GOF_model_simulator.R b/R/GOF_model_simulator.R index 748cce8..dd52d6e 100644 --- a/R/GOF_model_simulator.R +++ b/R/GOF_model_simulator.R @@ -38,6 +38,7 @@ GOF_lm_sim_param <- R6::R6Class( # nolint ##' ##' @param n number of random variables to be generated ##' @return vector of values following the Rademacher distribution +##' @keywords internal rrademacher <- function(n) { ret <- 2 * stats::rbinom(n = n, size = 1, prob = 0.5) - 1 return(ret) diff --git a/R/GOF_model_trainer.R b/R/GOF_model_trainer.R index cadd5a2..00538ca 100644 --- a/R/GOF_model_trainer.R +++ b/R/GOF_model_trainer.R @@ -2,10 +2,10 @@ ##' ##' @description R6 does not offer interfaces. Hence all methods ##' are considered as abstract. -##' @importFrom R6 R6Class ##' According to https://roxygen2.r-lib.org/articles/namespace.html#imports -##' the above R6Class import is not necessary but we need it to +##' the R6Class import below is not necessary but we need it to ##' get rid of a warning from the CRAN check :-( +##' @importFrom R6 R6Class ##' @export GOF_model_trainer <- R6::R6Class( # nolint classname = "GOF_model_trainer", diff --git a/_pkgdown.yml b/_pkgdown.yml index 84d0262..601ad3f 100644 --- a/_pkgdown.yml +++ b/_pkgdown.yml @@ -2,8 +2,7 @@ destination: docs title: bootGOF url: http://MarselScheer.github.io/bootGOF template: - params: - bootswatch: flatly + bootstrap: 5 reference: - title: "GOF-tests" - desc: >