-
Notifications
You must be signed in to change notification settings - Fork 124
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
Error in jsonlite::fromJSON(file = treemapFile) argument "txt" is missing, with no default #726
Comments
we got the same issue when trying to generate json file using Achilles::exportToJson. |
Hi , is there any solution identified for the above problem ? Currently we are having same issue while generating report through Achilles . |
I added a comment to the PR, I don't think the PR addresses this since you can't remove Secondly, there is no parameter named 'txt' in the function signature of We need the full stack trace to know what the exact line is that is reporting the error. the message |
The full stack trace:
and signature of jsonlite::fromJSON(), package version 1.8.8
|
As @Blappchri pointed out in #743, this is because we're calling fromJSON( json_str, file, method = "C", unexpected.escape = "error", simplify = TRUE ) fromJSON( txt, simplifyVector = TRUE, simplifyDataFrame = simplifyVector, simplifyMatrix = simplifyVector, flatten = FALSE, ...) |
Note that the branch isn't mine, @ziporah developed it. I am just the one being annoying about getting this issue fixed^^. I have not verified myself that the branch works in its entirety, but based on the code it is fixing the thing that need to be changed. I myself have used a workaround based on using trace() to rewrite the fromJSON function to how Achilles assumes it works within my R session. |
Sorry for the confusion, I edited my comment |
User ziporah created a pull request on the original OHDSI/Achilles repository to fix issue OHDSI#726.
User ziporah created a pull request on the original OHDSI/Achilles repository to fix issue OHDSI#726.
We are getting the same error :( |
When running the latest version of Achilles, v1.7.2:
I believe this is a regression caused in de786a6 since the jsonlite
fromJSON
function definition requires a parameter calledtxt
(which apparently can be a URL or file path as well): https://github.com/jeroen/jsonlite/blob/7287acf3925392c33b523c76dedd5fed631971a3/R/fromJSON.R#L44.I could find the following 4 instances of
fromJSON
using GitHub's search: https://github.com/search?q=repo%3AOHDSI%2FAchilles%20fromJson&type=codeWith https://github.com/OHDSI/Broadsea-Atlasdb it might be possible to create a basic integration test for running Achilles against a DB as part of the CI?
The text was updated successfully, but these errors were encountered: