From 6a3f406477917c9cfdb5be689ce613abf4aa8a22 Mon Sep 17 00:00:00 2001 From: Bruno Rodrigues Date: Mon, 1 Apr 2024 14:32:01 +0200 Subject: [PATCH] Update packages.qmd --- packages.qmd | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages.qmd b/packages.qmd index a1f66b6..fb1cef6 100644 --- a/packages.qmd +++ b/packages.qmd @@ -544,7 +544,7 @@ Then come the `@importFrom` statements. This is where you list dependencies: This is important, because the statements will write the dependencies into the package’s `NAMESPACE` file. This file is important, because any function defined there will be available to your package’s functions when you load the package. -So if your function use `dplyr::mutate()` for example, your package needs to +So if your function uses `dplyr::mutate()` for example, your package needs to know where to look for `mutate()`. This is where the `NAMESPACE` file comes into play. Take the opportunity to list the dependencies of your function to review them: maybe you're using a package for a single dependency that you could easily