1# check_pkg() give meaningful error messages 2 3 Code 4 dplyr:::check_pkg("`__foobarbaz__`", "foobar a baz") 5 Error <rlang_error> 6 The `__foobarbaz__` package is required to foobar a baz. 7 Please install it with `install.packages("`__foobarbaz__`")` 8 9--- 10 11 Code 12 dplyr:::check_pkg("`__foobarbaz__`", "foobar a baz", install = FALSE) 13 Error <rlang_error> 14 The `__foobarbaz__` package is required to foobar a baz. 15 16