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

FUTURE: Use do.call(fcn, ...) - not do.call("fcn", ...) #12

Closed
HenrikBengtsson opened this issue Dec 27, 2015 · 0 comments
Closed

FUTURE: Use do.call(fcn, ...) - not do.call("fcn", ...) #12

HenrikBengtsson opened this issue Dec 27, 2015 · 0 comments

Comments

@HenrikBengtsson
Copy link
Owner

When calling a function via do.call(), specify the function by itself and not by its name, e.g.

## GOOD
y <- do.call(backgroundCorrect, args=args)

## BAD
y <- do.call("backgroundCorrect", args=args)

The former will cause backgroundCorrect() to be identified as a global object by the globals such that it is properly exported when evaluated by a future.

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

No branches or pull requests

1 participant