Skip to content

Commit

Permalink
startup message
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Nov 15, 2024
1 parent bed0089 commit 26182d0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
3 changes: 2 additions & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ Misc:
* Using positional indices with `hypothesis="b1=b2"` can be dangerous if row order is modified. A warning is now issued once per session with detailed advice. This warning can be disabled with `options(marginaleffects_safe=FALSE)`.
* The `ggplot2` object returned by `plot_*()` functions now includes the estimates as a default object. This allows things like: `plot_predictions(model, condition="x")+geom_line()`. Thanks to @mattansb for code contribution #1259.
* Be less strict about combining columns of different types. This allows us to handle types like `haven_labelled`. Thanks to @mwindzio for report #1238.
* In `lme4` and `glmmTMB` models, warnings are now silenced when the user specifically passes `re.form=NULL`.
* In `lme4` and `glmmTMB` models, warnings are now silenced when the user specifically passes `re.form=NULL`. Thanks to @mattansb for the feature request.
* New startup message appears once per 24hr period and can be suppressed using `options(marginaleffects_startup_message = FALSE)`.

## 0.23.0

Expand Down
7 changes: 1 addition & 6 deletions R/zzz.R
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
.onAttach <- function(lib, pkg) {
msg <- c(
"",
"Please cite the software developers who make your work possible.",
"",
'One package: citation("package_name")',
"All project packages: softbib::softbib()",
"",
"Silence this message: options(marginaleffects_startup_message = FALSE)",
""
"All project packages: softbib::softbib()"
)
msg <- paste(msg, collapse = "\n")

Expand Down

0 comments on commit 26182d0

Please sign in to comment.