Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Be able to promote functions from {base} package #86

Open
moodymudskipper opened this issue Dec 23, 2021 · 1 comment
Open

Be able to promote functions from {base} package #86

moodymudskipper opened this issue Dec 23, 2021 · 1 comment
Milestone

Comments

@moodymudskipper
Copy link
Owner

I think now we can't because base functions are removed in the code.
If we demote the base package, it could be shown as an external reference rather than hidden.
The doc should mention that {base} is hidden by defaults and how to show it, we might give instructions on how to hide primitives, using hide = names(Filter(is.primitive, as.list(baseenv()))) on top (we might add a primitives() helper), or operators/control flow, using hide = Filter(\(x) make.names(x) != x & !grepl("<-", x), ls(baseenv())).

Maybe also one for generics (incl relevant primitives) since these might map to other potentially packaged functions.

maybe we can have a function base_funs() that gives us a selection of funs to promote, demote, hide.

Actually maybe we need a helper for this for any package filter_funs(pkg, generics, S4, min_lines, regex)etc, we would still need base_funs(primitives, control_flow, ...), dots passed to filter_duns.

where "generics", "primitives" etc can be "exclude", "include" (default), or "only" (or FALSE, NA, TRUE).

@moodymudskipper moodymudskipper modified the milestones: 0.0.2, 0.1.0, 0.1.1 Mar 4, 2022
@moodymudskipper
Copy link
Owner Author

It's useful to explore base functions, not sure if we'll want to promote a base function when exploring a packaged function.

Needs more time than I'd like to spend now vs value, move to further milestone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant