Skip to content

Commit

Permalink
I a word
Browse files Browse the repository at this point in the history
  • Loading branch information
klmr committed Feb 7, 2024
1 parent a8d6e8d commit a056bdf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vignettes/box.rmd
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The `box::use` directive can now use `bio/seq` instead of `./bio/seq` as the mod

**Note** that non-local module names *must* be fully qualified, nested modules: `box::use(foo/bar)` works, `box::use(bar)` does not (instead, it is assumed that `bar` refers to a *package*)!

In the declaration above we use `[revcomp, is_valid]` to specify that the names `revcomp` `is_valid` from the `bio/seq` module should be attached in the calling environment. The `[…]` part is an *attach specification*: a comma-separated list of names inside the parentheses specifies which names to attach. The special symbol `...` can be used to specify that *all exported names* should be attached. This has an effect similar to conventional package loading via `library` (or `attach`ing an environment): all the attached names are now available for direct use without necessitating the `seq$` qualifier:
In the declaration above we use `[revcomp, is_valid]` to specify that the names `revcomp` and `is_valid` from the `bio/seq` module should be attached in the calling environment. The `[…]` part is an *attach specification*: a comma-separated list of names inside the parentheses specifies which names to attach. The special symbol `...` can be used to specify that *all exported names* should be attached. This has an effect similar to conventional package loading via `library` (or `attach`ing an environment): all the attached names are now available for direct use without necessitating the `seq$` qualifier:

```{r}
is_valid(s)
Expand Down

0 comments on commit a056bdf

Please sign in to comment.