CRAN Package Check Results for Package visreg

Last updated on 2026-10-24 09:51:07 CEST.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 3.0.0 4.64 78.99 83.63 OK
r-devel-linux-x86_64-debian-gcc 3.0.0 2.77 59.15 61.92 ERROR
r-devel-linux-x86_64-fedora-clang 3.0.0 74.16 OK
r-devel-linux-x86_64-fedora-gcc 3.0.0 59.12 OK
r-devel-windows-x86_64 3.0.0 8.00 94.00 102.00 OK
r-patched-linux-x86_64 3.0.0 4.84 71.80 76.64 OK
r-release-linux-x86_64 3.0.0 4.37 70.34 74.71 OK
r-release-macos-arm64 3.0.0 1.00 23.00 24.00 OK
r-release-macos-x86_64 3.0.0 4.00 137.00 141.00 OK
r-release-windows-x86_64 3.0.0 6.00 84.00 90.00 OK
r-oldrel-macos-arm64 3.0.0 1.00 27.00 28.00 OK
r-oldrel-macos-x86_64 3.0.0 4.00 194.00 198.00 OK
r-oldrel-windows-x86_64 3.0.0 9.00 103.00 112.00 OK

Check Details

Version: 3.0.0
Check: examples
Result: ERROR Running examples in ‘visreg-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: visreg > ### Title: Visualization of regression functions > ### Aliases: visreg > > ### ** Examples > > library(ggplot2) > > # --- Linear models ---------------------------------------- > > ## Basic > fit <- lm(Ozone ~ Solar.R + Wind + Temp, data = airquality) > visreg(fit, "Wind", type = "contrast") > visreg(fit, "Wind", type = "conditional") > > ## Factors > airquality$Heat <- cut(airquality$Temp, 3, labels = c("Cool", "Mild", "Hot")) > fit.heat <- lm(Ozone ~ Solar.R + Wind + Heat, data = airquality) > visreg(fit.heat, "Heat", type = "contrast") > visreg(fit.heat, "Heat", type = "conditional") > > ## Transformations > fit1 <- lm(Ozone ~ Solar.R + Wind + Temp + I(Wind^2), data = airquality) > fit2 <- lm(log(Ozone) ~ Solar.R + Wind + Temp, data = airquality) > fit3 <- lm(log(Ozone) ~ Solar.R + Wind + Temp + I(Wind^2), data = airquality) > visreg(fit1, "Wind") > visreg(fit2, "Wind", trans = exp) + ylab("Ozone") > visreg(fit3, "Wind", trans = exp) + ylab("Ozone") > > ## Conditioning > visreg(fit, "Wind", cond = list(Temp = 50)) > visreg(fit, "Wind", print_cond = TRUE) Conditions used in construction of plot Solar.R: 207 Temp: 79 > visreg(fit, "Wind", cond = list(Temp = 100)) > > ## Interactions > fit_int <- lm(Ozone ~ Solar.R + Wind * Heat, data = airquality) > visreg(fit_int, "Wind", by = "Heat") > visreg(fit_int, "Heat", by = "Wind") > visreg(fit_int, "Wind", by = "Heat", type = "contrast") > visreg(fit_int, "Heat", by = "Wind", breaks = 6) > visreg(fit_int, "Heat", by = "Wind", breaks = c(0, 10, 20)) > > ## Overlay > visreg(fit_int, "Wind", by = "Heat", overlay = TRUE) > > > # --- Nonlinear models ------------------------------------- > > ## Logistic regression > data("birthwt", package = "MASS") > birthwt$race <- factor(birthwt$race, labels = c("White", "Black", "Other")) > birthwt$smoke <- factor(birthwt$smoke, labels = c("Nonsmoker", "Smoker")) > fit <- glm(low ~ age + race + smoke + lwt, data = birthwt, family = "binomial") > visreg(fit, "lwt") + + xlab("Mother's Weight") + + ylab("Log odds (low birthweight)") > visreg(fit, "lwt", scale = "response", partial = FALSE) + + xlab("Mother's Weight") + + ylab("P(low birthweight)") > > ## Proportional hazards > data(cancer, package="survival") > ovarian$rx <- factor(ovarian$rx) > fit <- survival::coxph( + survival::Surv(futime, fustat) ~ age + rx, + data = ovarian + ) > visreg(fit, "age") + ylab("log(Hazard ratio)") Error in a$specials[[i]] : subscript out of bounds Calls: visreg ... get_xy -> compute_response -> visreg_pred -> call_fn Execution halted Flavor: r-devel-linux-x86_64-debian-gcc