CRAN Package Check Results for Package marginaleffects

Last updated on 2025-12-20 01:49:57 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.31.0 15.90 104.84 120.74 OK
r-devel-linux-x86_64-debian-gcc 0.31.0 8.01 63.06 71.07 ERROR
r-devel-linux-x86_64-fedora-clang 0.31.0 27.00 162.18 189.18 ERROR
r-devel-linux-x86_64-fedora-gcc 0.31.0 25.00 159.60 184.60 ERROR
r-devel-windows-x86_64 0.31.0 15.00 114.00 129.00 OK
r-patched-linux-x86_64 0.31.0 16.52 92.66 109.18 OK
r-release-linux-x86_64 0.31.0 13.03 91.52 104.55 OK
r-release-macos-arm64 0.30.0 5.00 35.00 40.00 OK
r-release-macos-x86_64 0.31.0 10.00 155.00 165.00 OK
r-release-windows-x86_64 0.31.0 16.00 115.00 131.00 OK
r-oldrel-macos-arm64 0.31.0 3.00 39.00 42.00 OK
r-oldrel-macos-x86_64 0.31.0 11.00 135.00 146.00 OK
r-oldrel-windows-x86_64 0.31.0 21.00 132.00 153.00 OK

Check Details

Version: 0.31.0
Check: examples
Result: ERROR Running examples in ‘marginaleffects-Ex.R’ failed The error most likely occurred in: > base::assign(".ptime", proc.time(), pos = "CheckExEnv") > ### Name: datagrid > ### Title: Data grids > ### Aliases: datagrid > > ### ** Examples > > # The output only has 2 rows, and all the variables except `hp` are at their > # mean or mode. > datagrid(newdata = mtcars, hp = c(100, 110)) rowid mpg cyl disp drat wt qsec vs am gear carb hp 1 1 20.09062 6 230.7219 3.596563 3.21725 17.84875 0 0 4 3 100 2 2 20.09062 6 230.7219 3.596563 3.21725 17.84875 0 0 4 3 110 > > # We get the same result by feeding a model instead of a data.frame > mod <- lm(mpg ~ hp, mtcars) > datagrid(model = mod, hp = c(100, 110)) rowid mpg hp 1 1 20.09062 100 2 2 20.09062 110 > > # Use in `marginaleffects` to compute "Typical Marginal Effects". When used > # in `slopes()` or `predictions()` we do not need to specify the > # `model` or `newdata` arguments. > slopes(mod, newdata = datagrid(hp = c(100, 110))) Error in `[.data.table`(out, , `:=`(tmp_idx, seq_len(.N)), by = tmp) : attempt access index 10/10 in VECTOR_ELT Calls: slopes ... <Anonymous> -> do.call -> get_comparisons -> [ -> [.data.table Execution halted Flavor: r-devel-linux-x86_64-debian-gcc

Version: 0.31.0
Check: examples
Result: ERROR Running examples in ‘marginaleffects-Ex.R’ failed The error most likely occurred in: > ### Name: datagrid > ### Title: Data grids > ### Aliases: datagrid > > ### ** Examples > > # The output only has 2 rows, and all the variables except `hp` are at their > # mean or mode. > datagrid(newdata = mtcars, hp = c(100, 110)) rowid mpg cyl disp drat wt qsec vs am gear carb hp 1 1 20.09062 6 230.7219 3.596563 3.21725 17.84875 0 0 4 3 100 2 2 20.09062 6 230.7219 3.596563 3.21725 17.84875 0 0 4 3 110 > > # We get the same result by feeding a model instead of a data.frame > mod <- lm(mpg ~ hp, mtcars) > datagrid(model = mod, hp = c(100, 110)) rowid mpg hp 1 1 20.09062 100 2 2 20.09062 110 > > # Use in `marginaleffects` to compute "Typical Marginal Effects". When used > # in `slopes()` or `predictions()` we do not need to specify the > # `model` or `newdata` arguments. > slopes(mod, newdata = datagrid(hp = c(100, 110))) Error in `[.data.table`(out, , `:=`(tmp_idx, seq_len(.N)), by = tmp) : attempt access index 10/10 in VECTOR_ELT Calls: slopes ... <Anonymous> -> do.call -> get_comparisons -> [ -> [.data.table Execution halted Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-linux-x86_64-fedora-gcc