You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently all user errors are swallowed by try blocks in r_list:
> r_data_frame(10,
+ id = sample(NULL, 10),
+ answer())
Error in sample(NULL, 10, n = 10) (from r_list.R#71) : unused argument (n = 10)
>
which is unrelated to the real problem
> sample(NULL, 10)
Error in sample.int(length(x), size, replace, prob) :
invalid first argument
BTW, you can eliminate such errors and avoid the substitution of each var_function by having a smart n argument that would automatically pick n from the calling environment:
@vspinu Definitely a valid point I didn't realize was happening. I agree fully so long as the user's experience isn't changed (or at least not lowered). I don't have a lot of dev time at the moment. A pull request for the fix would be appreciated.
Currently all user errors are swallowed by try blocks in
r_list
:which is unrelated to the real problem
BTW, you can eliminate such errors and avoid the substitution of each var_function by having a smart
n
argument that would automatically pickn
from the calling environment:The text was updated successfully, but these errors were encountered: