-
Notifications
You must be signed in to change notification settings - Fork 48
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
Use of formals() in CohortDiagnostics::executeDiagnostics #1070
Comments
@mvankessel-EMC thanks for this - I'm not quite sure what we use the json for? @gowthamrao is it used in the meta data to check what the calling arguments set by the user were? If so calling |
@azimov I took the liberty to trace down the path
|
Yes - i looks like this is just stored in the metadata result - we just need to create a list that stores the relevant arguments (and doesn't leak user data, e.g. connectionDetails) |
…e created and will persist. Also fix the callingArgsJson. see OHDSI#1070
When parsing the arguments of
executDiagnostics()
here, only default parameters will be passed to variablecallingArgsJson
.Here is an example showing this using an example function
foo()
:Created on 2023-08-18 with reprex v2.0.2
Session info
In the following example I've simplified
executDiagnostics()
definition to only produce json and cut down the variables to only use those that are passed toformals()
.Created on 2023-08-18 with reprex v2.0.2
Session info
Original post in the DARWIN fork
The text was updated successfully, but these errors were encountered: