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

Fix so expect_function_self_contained can handle ordinary functions #101

Open
MansMeg opened this issue Feb 21, 2018 · 0 comments
Open

Fix so expect_function_self_contained can handle ordinary functions #101

MansMeg opened this issue Feb 21, 2018 · 0 comments

Comments

@MansMeg
Copy link
Owner

MansMeg commented Feb 21, 2018

expect_function_self_contained() needs to allow global functions, such as:
sum or sd.

Now you need to specify the namespace (i.e. base::sum).

fullns <- unlist(lapply(X = seq_along(search()), FUN = function(X) ls(pos = X)))

Or make it possible to accept certain packages (such as stats and base)

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