Skip to content

Commit

Permalink
Fix R CMD check NOTE
Browse files Browse the repository at this point in the history
  • Loading branch information
hadley committed Apr 8, 2022
1 parent ab36f5a commit 4473f2a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/namespace.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ The `NAMESPACE` also controls which functions from other packages are made avail

If you are using just a few functions from another package, the recommended option is to add the package name to the `Imports:` field of the `DESCRIPTION` file and call the functions explicitly using `::`, e.g., `pkg::fun()`.

```{r}
```{r, eval = FALSE}
my_function <- function(x, y) {
pkg::fun(x) * y
}
Expand Down

0 comments on commit 4473f2a

Please sign in to comment.