klmr / klmr/box

Allow excluding attached names via `!`

Open
#287 0 comments 0 reactions 0 assignees View on GitHub
✨ new feature
Dominant language
R
Stars
979
Forks
49
PR merge metrics
No merged PRs in 30d

Description

### Please describe your feature request

Enable the following syntax:

```r
box::use(stats[..., ! filter])
```

To import and attach all names from the ‘stats’ package, except the name `filter`. This comes in handy to avoid name conflicts between two attached packages (e.g. `stats::filter` and `dplyr::filter`) and makes order of import declarations less important.

Ensure that `!` declarations are only valid in conjunction with `...` wildcard declarations (since they are otherwise meaningless).

Contributor guide

Open the contributing guide

Research direction

Start by tracing how box::use parses wildcard declarations and attaches names, using the shown stats[..., ! filter] syntax as the entry point. Ensure exclusions are accepted only alongside ..., and verify that filter is omitted while other stats names remain attached.

Written by the indexing model from the issue text.

Assessment

Tech stack
r
Domain
developer-experience
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.