-
Notifications
You must be signed in to change notification settings - Fork 166
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
PLP package generated by WebAPI v2.12.0 fails on renv #2162
Comments
Also PLP package should not be higher v5.0.5? v6.0 is not compatible further because of some methods were changed |
Hi @konstjar - yes, seems like there are a few problems here.
Not sure what is wrong with this command? The presumption is that the package would be uploaded to the ohdsi-studies area for use.
The renv.lock file reference for CohortGenerator should point to GitHub. An example of how that should look is here: https://github.com/OHDSI/CohortGeneratorModule/blob/main/renv.lock#L420-L428. Next, we'll need to decide which version to use....
Presumably we should make use of CohortGenerator v0.4.0 and this should be the version referenced in the
Yes, we should probably move that to v5.0.5 as v6 has breaking changes. We should also ensure this is referenced in the renv.lock file properly. Appreciate you digging into this! As a suggestion here, could you make these changes locally and if there are any other issues encountered, can you post them here? Once your package is working, we can revise the skeleton reference in Hydra and plan another release. |
@anthonysena Thank you for quick response. I'm moving forward and collecting the set of changes to be addressed and my steps.
I removed first one with "CRAN".
I'm trying to run the analysis and I will update here on results |
I continue with exercise. My initial platform was Macbook Pro with M1 processor. During restoring all packages I met the issue that RJSONIO package was not able to compile. I switched to Windows 10 platform. After setting up all things, I ran the analysis and got this error:
Here is a sessionInfo:
Next step will be to update PLP to v5.0.5 |
Attempt to use PLP v5.0.5 failed with the same problem:
Here is sessionInfo:
|
I found similar issue in PLP package, but there is no solution shared: Problem happens here: Do you have any suggestions for any next steps I can try? |
Thanks @konstjar - can you post the JSON for the study if possible? I'd like to take a look at that as it would appear that the |
Please find attached. |
Hi @anthonysena, I'm facing the same error as @konstjar. The steps I follow was:
My JSON for the study is this and my sessionInfo():
|
Hello @konstjar, have you made any progress with this issue? |
@iamalonso Nothing yet, I hope to have some information after Thanksgiving. |
Hi all - I'm still investigating this issue and I've been able to reproduce the problem described in this issue. I'll follow up when I have more information and hopefully a solution. |
OK - thanks to @jreps for the help while investigating this. I'll work to make a new release of Hydra that has these changes but before I do that, it would be great if @konstjar and @iamalonso could confirm this change works for you. In terms of the R code, there was 1 change made to the # make backwards compatible
if(is.null(predictionAnalysisList)){
predictionAnalysisList <- backwards(predictionAnalysisListFile)
} Replace that with: # make backwards compatible
if(length(predictionAnalysisList$analyses) <= 0){
predictionAnalysisList <- backwards(predictionAnalysisListFile)
} This should allow for the package to properly format the Additionally, I had to make some updates to the renv lock file to capture some updates to dependencies. Here are the notes:
|
@anthonysena Thank you! Your fix solves the issue. |
Updates the PLP skeleton per OHDSI/WebAPI#2162
@anthonysena During these days I will dedicate time to implement the solution you propose. |
Hi @iamalonso - I've implemented the fix on the branch referenced in #2174 which should make testing things a bit easier if you'd like to install that version of WebAPI. |
Expected behavior
As a user I'm able to run generated package from RStudio
Actual behavior
a. Wrong command in STUDY-PACKAGE-SETUP.md
b. The 'renv::init()' failes on the error:
Steps to reproduce behavior
The text was updated successfully, but these errors were encountered: