HenrikBengtsson / aroma.seq

🔬 R package: aroma.seq: High-Throughput Sequence Analysis using the Aroma Framework
https://github.com/HenrikBengtsson/aroma.seq
0 stars 1 forks source link

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

Closed HenrikBengtsson closed 8 years ago

HenrikBengtsson commented 8 years ago

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.