GEMINI-Medicine / Rgemini

A custom R package that provides a variety of functions to perform data analyses with GEMINI data
https://gemini-medicine.github.io/Rgemini/
Other
3 stars 0 forks source link

Automate checks for minimum version of pkg dependencies #127

Open loffleraSMH opened 2 months ago

loffleraSMH commented 2 months ago

New Feature Request

Many Rgemini functions depend on other packages, and some versions of those dependencies might not be compatible with Rgemini functions.

For example, when running loop_mlaps with dplyr_1.0.9, the following error is shown:

image (10)

However, when updating to dplyr_1.1.4, the function works well.

Ideally, we can build a workflow that automatically checks the minimum required version of all dependencies and add the required version number for each package to the DESCRIPTION file.

As suggested by @vaakesan-SMH: We could write a script that installs each version of every dependency in the DESCRIPTION file, and run all devtools::test(). If it fails we mark the minimum version in the DESCRIPTION file. We could then make this into a CI/CD script that is run on every commit.

A few things to consider: