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 diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 0000000..bfaaa24 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,18 @@ +{ + "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" + }, + // "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": {}, + }, +} 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()`