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 
image

Steps to reproduce behavior

  1. Download zip file for PLP package from ATLAS UI
  2. Follow steps in STUDY-PACKAGE-SETUP.md instruction
  3. 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

Most upvoted comments

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?