Skip to content

Commit

Permalink
Be more precise (#2268)
Browse files Browse the repository at this point in the history
`requireNamespace("pkg")` does *load* pkg, but not *attach* it.
  • Loading branch information
salim-b authored Nov 10, 2023
1 parent afd88d7 commit 5edcfaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/unused_import_linter.R
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
#' @param allow_ns_usage Suppress lints for packages only used via namespace.
#' This is `FALSE` by default because `pkg::fun()` doesn't require `library(pkg)`.
#' You can use [requireNamespace("pkg")][requireNamespace()] to ensure a package is
#' installed without loading it.
#' installed without attaching it.
#' @param except_packages Character vector of packages that are ignored.
#' These are usually attached for their side effects.
#'
Expand Down

0 comments on commit 5edcfaa

Please sign in to comment.