Code
(expect_warning(warn_if_conflicts("pkg", e1, e2)))
Output
<warning/pkgload::conflict>
Warning:
-- Conflicts -------------------------------------------------- pkg conflicts --
x `foo` masks `pkg::foo()`.
i Did you accidentally source a file rather than using `load_all()`?
Run `rm(list = c("foo"))` to remove the conflicts.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.