From 49059e08bd7ff76f551991ff2dd0ce6dbccc9eb7 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:09:27 +0800 Subject: [PATCH 01/12] Create devcontainer.json --- .devcontainer/devcontainer.json | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 .devcontainer/devcontainer.json diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..c755e3b --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + "image": "ghcr.io/rocker-org/devcontainer/r-ver:devel", + "features": { + "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { + "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang, r-lib/pak" + }, + // "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": { + // "installChromium": true + // }, + // "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { + // "packages": "chromium" + // }, + //"ghcr.io/rocker-org/devcontainer-features/pandoc:latest": { + //"version": "2.17" + //}, + //"ghcr.io/rocker-org/devcontainer-features/r-dependent-packages:latest": {}, + }, +} From d1a7be5dddb7e38b06051074055cd5edac041806 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:23:14 +0800 Subject: [PATCH 02/12] Update devcontainer.json --- .devcontainer/devcontainer.json | 56 +++++++++++++++++++++++---------- 1 file changed, 40 insertions(+), 16 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index c755e3b..7a0267d 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,18 +1,42 @@ { - "image": "ghcr.io/rocker-org/devcontainer/r-ver:devel", - "features": { - "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { - "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang, r-lib/pak" - }, - // "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": { - // "installChromium": true - // }, - // "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { - // "packages": "chromium" - // }, - //"ghcr.io/rocker-org/devcontainer-features/pandoc:latest": { - //"version": "2.17" - //}, - //"ghcr.io/rocker-org/devcontainer-features/r-dependent-packages:latest": {}, - }, + // Source: https://github.com/rocker-org/devcontainer-images/tree/main/src/r-ver + "build": { + "dockerfile": "Dockerfile", + "context": ".", + "args": { + "VARIANT": "4", + "BASE_IMAGE": "rocker/r-ver" + } + }, + "features": { + "ghcr.io/devcontainers/features/common-utils:2": {}, + "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { + "packages": "httpgd", + "additionalRepositories": "rmv = 'https://community.r-multiverse.org'", + "installSystemRequirements": true + }, + "ghcr.io/rocker-org/devcontainer-features/r-rig:1": { + "version": "none", + "vscodeRSupport": "lsp", + "installDevTools": true, + "installREnv": true, + "installRMarkdown": true, + "installRadian": true, + "installVscDebugger": true + } + }, + "overrideFeatureInstallOrder": [ + "ghcr.io/devcontainers/features/common-utils" + ], + "remoteUser": "rstudio", + "customizations": { + "vscode": { + "extensions": ["RDebugger.r-debugger"], + "settings": { + "r.rterm.linux": "/usr/local/bin/radian", + "r.bracketedPaste": true, + "r.plot.useHttpgd": true + } + } + } } From 6755213b599c6c64c06145ec886f78bc40193c14 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:24:58 +0800 Subject: [PATCH 03/12] Revert to latest --- .devcontainer/devcontainer.json | 56 ++++++++++----------------------- 1 file changed, 16 insertions(+), 40 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7a0267d..7aa1aea 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,42 +1,18 @@ { - // Source: https://github.com/rocker-org/devcontainer-images/tree/main/src/r-ver - "build": { - "dockerfile": "Dockerfile", - "context": ".", - "args": { - "VARIANT": "4", - "BASE_IMAGE": "rocker/r-ver" - } - }, - "features": { - "ghcr.io/devcontainers/features/common-utils:2": {}, - "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { - "packages": "httpgd", - "additionalRepositories": "rmv = 'https://community.r-multiverse.org'", - "installSystemRequirements": true - }, - "ghcr.io/rocker-org/devcontainer-features/r-rig:1": { - "version": "none", - "vscodeRSupport": "lsp", - "installDevTools": true, - "installREnv": true, - "installRMarkdown": true, - "installRadian": true, - "installVscDebugger": true - } - }, - "overrideFeatureInstallOrder": [ - "ghcr.io/devcontainers/features/common-utils" - ], - "remoteUser": "rstudio", - "customizations": { - "vscode": { - "extensions": ["RDebugger.r-debugger"], - "settings": { - "r.rterm.linux": "/usr/local/bin/radian", - "r.bracketedPaste": true, - "r.plot.useHttpgd": true - } - } - } + "image": "ghcr.io/rocker-org/devcontainer/r-ver:latest", + "features": { + "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { + "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang, r-lib/pak" + }, + // "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": { + // "installChromium": true + // }, + // "ghcr.io/rocker-org/devcontainer-features/apt-packages:1": { + // "packages": "chromium" + // }, + //"ghcr.io/rocker-org/devcontainer-features/pandoc:latest": { + //"version": "2.17" + //}, + //"ghcr.io/rocker-org/devcontainer-features/r-dependent-packages:latest": {}, + }, } From fe41d65a9909bc78ddebe20f708af1f4fd3549bf Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:26:40 +0800 Subject: [PATCH 04/12] Try r-ver:4.6 --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 7aa1aea..38e2045 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/rocker-org/devcontainer/r-ver:latest", + "image": "ghcr.io/rocker-org/devcontainer/r-ver:4.6", "features": { "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang, r-lib/pak" From ee0dbedfd58ae991595590502f9e128d8cba4f0c Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:27:28 +0800 Subject: [PATCH 05/12] Try r-ver:4 --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 38e2045..d6ff3b5 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/rocker-org/devcontainer/r-ver:4.6", + "image": "ghcr.io/rocker-org/devcontainer/r-ver:4", "features": { "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang, r-lib/pak" From 0cfc4ca8faeea0b186188f68d93d6adf9be3f694 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:36:21 +0800 Subject: [PATCH 06/12] Try ghcr.io/rocker-org/r-ver:4.6 --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index d6ff3b5..5456bb6 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/rocker-org/devcontainer/r-ver:4", + "image": "ghcr.io/rocker-org/r-ver:4.6", "features": { "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang, r-lib/pak" From 0b6adac2f6d16ffbae4037116d3f642c4ccb9074 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:40:04 +0800 Subject: [PATCH 07/12] Remvoe pak --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 5456bb6..bfaaa24 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -2,7 +2,7 @@ "image": "ghcr.io/rocker-org/r-ver:4.6", "features": { "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { - "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang, r-lib/pak" + "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang" }, // "ghcr.io/rocker-org/devcontainer-features/quarto-cli:1": { // "installChromium": true From f93b294ebb206a1c8d2301091cd7cb64d3b18fb2 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:45:54 +0800 Subject: [PATCH 08/12] Try r-ver:devel again --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index bfaaa24..6b148a1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/rocker-org/r-ver:4.6", + "image": "ghcr.io/rocker-org/r-ver:devel", "features": { "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang" From fd291f86a11f20a254531fe0d4986059402616a5 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:52:26 +0800 Subject: [PATCH 09/12] Try r-devel --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 6b148a1..fc252de 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/rocker-org/r-ver:devel", + "image": "ghcr.io/rocker-org/r-devel", "features": { "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang" From 854fba6656e52872699484ce890d87fded53bc0d Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 20:54:14 +0800 Subject: [PATCH 10/12] Only r-ver:4.6 works --- .devcontainer/devcontainer.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index fc252de..bfaaa24 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -1,5 +1,5 @@ { - "image": "ghcr.io/rocker-org/r-devel", + "image": "ghcr.io/rocker-org/r-ver:4.6", "features": { "ghcr.io/rocker-org/devcontainer-features/r-packages:1": { "packages": "pkgdown, testthat, knitr, rmarkdown, visreg, lm.beta, ggplot2, lavaan, manymome, rlang" From d40339dca2d1dedae18cab6a39d5a90c5245cc76 Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 21:05:03 +0800 Subject: [PATCH 11/12] Ignore .devcontainer --- .Rbuildignore | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.Rbuildignore b/.Rbuildignore index a850852..853f150 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -8,4 +8,5 @@ ^Meta$ ^\.github$ ^rebuild_vignettes.R$ -^\.lintr$ \ No newline at end of file +^\.lintr$ +^\.devcontainer$ \ No newline at end of file From e0a67eb4730c8d098ad56403adb30cc46e42ce8c Mon Sep 17 00:00:00 2001 From: Shu Fai Cheung Date: Mon, 4 May 2026 21:22:45 +0800 Subject: [PATCH 12/12] 0.2.13: Replace 'simpleError" with "error" tests and checks passed. --- DESCRIPTION | 2 +- NEWS.md | 8 ++++++++ R/condeff.R | 4 ++-- R/condeff_boot.R | 4 ++-- R/plotmod.R | 4 ++-- README.md | 2 +- 6 files changed, 16 insertions(+), 8 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index 6fac3c4..da54e5c 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,6 +1,6 @@ Package: stdmod Title: Standardized Moderation Effect and Its Confidence Interval -Version: 0.2.12 +Version: 0.2.13 Authors@R: c(person(given = "Shu Fai", family = "Cheung", diff --git a/NEWS.md b/NEWS.md index 2e7e7ca..1b6772f 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,3 +1,11 @@ +# stdmod 0.2.13 + +## Miscellaneous + +- Fixed a CRAN check issue with R-devel + (2026-05-03 r89994 ucrt). + (0.2.13) + # stdmod 0.2.12 ## Miscellaneous diff --git a/R/condeff.R b/R/condeff.R index d65f94d..066b432 100644 --- a/R/condeff.R +++ b/R/condeff.R @@ -153,14 +153,14 @@ cond_effect <- function(output, w_method <- match.arg(w_method) x0 <- deparse(substitute(x)) if (inherits(tryCatch(x00 <- as.character(x), error = function(e) e), - "simpleError")) { + "error")) { x <- x0 } else { x <- x00 } w0 <- deparse(substitute(w)) if (inherits(tryCatch(w00 <- as.character(w), error = function(e) e), - "simpleError")) { + "error")) { w <- w0 } else { w <- w00 diff --git a/R/condeff_boot.R b/R/condeff_boot.R index 68badef..986759f 100644 --- a/R/condeff_boot.R +++ b/R/condeff_boot.R @@ -107,14 +107,14 @@ cond_effect_boot <- function(output, do_boot = TRUE) { x0 <- deparse(substitute(x)) if (inherits(tryCatch(x00 <- as.character(x), error = function(e) e), - "simpleError")) { + "error")) { x <- x0 } else { x <- x00 } w0 <- deparse(substitute(w)) if (inherits(tryCatch(w00 <- as.character(w), error = function(e) e), - "simpleError")) { + "error")) { w <- w0 } else { w <- w00 diff --git a/R/plotmod.R b/R/plotmod.R index 20d360e..3ed4701 100644 --- a/R/plotmod.R +++ b/R/plotmod.R @@ -218,14 +218,14 @@ plotmod <- function(output, x, w, graph_type <- match.arg(graph_type) x0 <- deparse(substitute(x)) if (inherits(tryCatch(x00 <- as.character(x), error = function(e) e), - "simpleError")) { + "error")) { x <- x0 } else { x <- x00 } w0 <- deparse(substitute(w)) if (inherits(tryCatch(w00 <- as.character(w), error = function(e) e), - "simpleError")) { + "error")) { w <- w0 } else { w <- w00 diff --git a/README.md b/README.md index 6539cc1..9e7ad6f 100644 --- a/README.md +++ b/README.md @@ -13,7 +13,7 @@ # stdmod: Standardized Moderation -(Version 0.2.12, updated on 2026-01-07, [release history](https://sfcheung.github.io/stdmod/news/index.html)) +(Version 0.2.13, updated on 2026-05-04, [release history](https://sfcheung.github.io/stdmod/news/index.html)) (Important changes since 0.2.0.0: Bootstrap confidence intervals and variance-covariance matrix of estimates are the defaults of `confint()`