-
Notifications
You must be signed in to change notification settings - Fork 7
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
functions used in formula= argument in defData
not available for functions defined out of global namespace
#232
Comments
Yes - you are right, it does expect the function to be in the global environment. I will need to fix that. Thanks. |
Also thanks for a nice package! |
Ah, this only works with variables but not with functions because we only use Line 66 in 8ee0284
|
That is exactly the approach I took. You can take a look to see if I did this correctly in the branch. It seems to work just fine, though there is some issue with genSurv and one other function that I need to resolve (it failed 4 tests) - none related to |
Nice! Seems correct to me, maybe something local? You could open a PR and we can see what CI does? |
I figured it out - there's an extra argument n, which was not used in some calls to |
@NielsKrarup This issue has been fixed - and is available in the development version of |
When using a function in the quoted formula= functionality it seems to me that this expects the function to be available not where defData is called but in global environment, or some other place.
I have added code reproducing the error below.
Thanks,
Niels
The text was updated successfully, but these errors were encountered: