WebAPI: PLP package generated by WebAPI v2.12.0 fails on renv
Expected behavior
As a user I’m able to run generated package from RStudio
Actual behavior
a. Wrong command in STUDY-PACKAGE-SETUP.md
# Download the lock file:
download.file("https://raw.githubusercontent.com/ohdsi-studies/regressPLP/main/renv.lock", "renv.lock")
b. The ‘renv::init()’ failes on the error:
Retrieving 'https://cloud.r-project.org/src/contrib/Archive/CohortGenerator/CohortGenerator_0.3.0.tar.gz' ...
Warning: failed to find binary for 'CohortGenerator 0.3.0' in package repositories
Warning: failed to find source for 'CohortGenerator 0.3.0' in package repositories
Warning: failed to retrieve 'https://cloud.r-project.org/src/contrib/Archive/CohortGenerator/CohortGenerator_0.3.0.tar.gz' [error code 22]
Error: failed to retrieve package 'CohortGenerator@0.3.0'
In addition: Warning message:
curl: (22) The requested URL returned error: 404
Steps to reproduce behavior
- Download zip file for PLP package from ATLAS UI
- Follow steps in STUDY-PACKAGE-SETUP.md instruction
- Run ‘renv::init()’ command
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Comments: 17 (9 by maintainers)
Commits related to this issue
- Update PLP skeleton to address bug (#50) Updates the PLP skeleton per OHDSI/WebAPI#2162 — committed to OHDSI/Hydra by anthonysena 2 years ago
- Bump Hydra version - fixes #2162 — committed to OHDSI/WebAPI by anthonysena 2 years ago
- Bump Hydra version - fixes #2162 (#2174) — committed to OHDSI/WebAPI by anthonysena a year ago
- Bump Hydra version - fixes #2162 (#2174) (cherry picked from commit 84a2cdc212a11bbb7a03e9638827dc6ad41edce8) — committed to OHDSI/WebAPI by anthonysena a year ago
I found similar issue in PLP package, but there is no solution shared: https://github.com/OHDSI/PatientLevelPrediction/issues/292
Problem happens here: https://github.com/OHDSI/SkeletonPredictionStudy/blob/main/R/Main.R#L165
Do you have any suggestions for any next steps I can try?