Screen a function for use of functions forbidden by data system style guide.

screen_forbidden(fn)

Arguments

fn

The function to be tested. This is the actual function object, not the name of the function.

Value

Nx2 Character matrix of flagged lines and the test that tripped them (empty vector, if none)

Details

Certain functions are forbidden by the dsr style guide from being used in code chunks. This function tests a function for calls to forbidden functions and flags the offending lines.

Author

RL 19 Apr 2017