You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@@ -85,15 +85,15 @@ The `NAMESPACE` also controls which functions from other packages are made avail
If you are using just a few functions from another package, we recommending adding the package to the `Imports:` field of the `DESCRIPTION` file and calling the functions explicitly using `::`, e.g., `pkg::fun()`.
```{r, eval = FALSE}
```r
my_function<-function(x, y) {
pkg::fun(x) *y
}
```
If the repetition of the package name becomes annoying you can `@importFrom` and drop the `::`: