ohdsi-studies / ApPhenotypeEvaluation

This study uses a probabilistic reference standard validation method to rapidly estimate the measurement errors of 5 acute pancreatitis phenotype definitions. It also computes comprehensive, population-level characteristics of the cohorts returned by the 5 phenotype algorithms.
Apache License 2.0
0 stars 1 forks source link

Matrix >=1.4.2 required by MatrixModels #1

Open eminty opened 2 years ago

eminty commented 2 years ago

Error while attempting to initialize renv

Installing MatrixModels [0.5-1] ...
    FAILED
Error installing package 'MatrixModels':
========================================

* installing to library ‘/workdir/workdir/ExecutionVersion/ApPhenotypeEvaluation/renv/library/R-4.0/x86_64-pc-linux-gnu/.renv/1’
* installing *source* package ‘MatrixModels’ ...
** package ‘MatrixModels’ successfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) : 
  namespace ‘Matrix’ 1.4-1 is being loaded, but >= 1.4.2 is required
Calls: <Anonymous> ... namespaceImportFrom -> asNamespace -> loadNamespace
Execution halted
ERROR: lazy loading failed for package ‘MatrixModels’
* removing ‘/workdir/workdir/ExecutionVersion/ApPhenotypeEvaluation/renv/library/R-4.0/x86_64-pc-linux-gnu/.renv/1/MatrixModels’
Error: install of package 'MatrixModels' failed [error code 1]

Current renv.lock specifies

"Matrix": { "Package": "Matrix", "Version": "1.4-1", "Source": "Repository", "Repository": "CRAN", "Hash": "699c47c606293bdfbc9fd78a93c9c8fe", "Requirements": [ "lattice" ] },

eminty commented 2 years ago

The next version of Matrix is 1.5-0 (see here) With that change in the lock file renv executes successfully.