CRAN Package Check Results for Package marginaleffects

Last updated on 2025-12-28 01:48:43 CET.

Flavor Version Tinstall Tcheck Ttotal Status Flags
r-devel-linux-x86_64-debian-clang 0.31.0 16.61 104.27 120.88 OK
r-devel-linux-x86_64-debian-gcc 0.31.0 10.66 72.72 83.38 OK
r-devel-linux-x86_64-fedora-clang 0.31.0 28.00 167.11 195.11 OK
r-devel-linux-x86_64-fedora-gcc 0.31.0 26.00 190.16 216.16 OK
r-devel-windows-x86_64 0.31.0 13.00 105.00 118.00 ERROR
r-patched-linux-x86_64 0.31.0 15.73 93.06 108.79 OK
r-release-linux-x86_64 0.31.0 14.16 95.84 110.00 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 18.00 106.00 124.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 23.00 134.00 157.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: > ### 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-windows-x86_64

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.
Health stats visible at Monitor.