I believe the reason is because of how arguments are assessed in the function. It always looks in the parent environment: formal.args <- formals(sys.function(sysP <- sys.parent()))
If I decide to put fetch_cricsheet in the function, the formal arguments are always null and the function errors out
Can't use
fetch_cricsheet
within a function.I believe the reason is because of how arguments are assessed in the function. It always looks in the parent environment:
formal.args <- formals(sys.function(sysP <- sys.parent()))
If I decide to put
fetch_cricsheet
in the function, the formal arguments are always null and the function errors outExample failure:
Another example failure