8000 Dependency versions probably should be less specific · Issue #126 · NIDAP-Community/DSPWorkflow · GitHub
[go: up one dir, main page]

Skip to content
7FFF

Dependency versions probably should be less specific #126

Open

Description

@kelly-sovacool

Specifying exact version numbers in the description file (e.g. dplyr (== 1.0.9),) means that installation will fail for users with different versions with errors like:

Error: package ‘dplyr’ 1.1.3 was found, but == 1.0.9 is required by ‘DSPWorkflow’

It is recommended to leave off version numbers except for when you know you need an exact version or use a feature added in a specific version.
For example, you might use a function added in package foo at version 1.2.0, but any minor/patch version after that would work fine, so you'd specify:

foo (>= 1.20)

Then users with later versions of foo don't have to uninstall/reinstall it. You can also specify maximum versions if a package introduces a breaking change at a major version that you don't want to accommodate.

Activity

  1. escauley commented on Oct 18, 2023

    @escauley
    Member

    So this comes from the Conda package build that we need to do to bring the package to NIDAP. Since the Conda package needs to build under a certain R version, we had to specify exact package versions so that it does not use higher dependency versions that raise the minimum R version over what is available on NIDAP

  2. kelly-sovacool commented on Oct 18, 2023

    @kelly-sovacool
    MemberAuthor

    Would it be possible to specify that certain R version in the conda package recipe for NIDAP, rather than enforce exact versions here?

  3. escauley commented on Oct 18, 2023

    @escauley
    Member

    That's a good point! So to make sure I understand, you are saying in the .yaml recipe file used to assemble the Conda package we specify the specific dependency versions, while in the package Description we keep the dependency versions as less specific?

  4. kelly-sovacool commented on Oct 18, 2023

    @kelly-sovacool
    MemberAuthor

    @escauley Yep exactly! Or perhaps even with the command you use to install the conda package on NIDAP (e.g. something like mamba install r-base==4.1.3 DSPWorkflow)? I am not familiar with how you're preparing the conda recipes for NIDAP, so I might be off base here.

    Since the stringent version requirements are specific to NIDAP rather than this R package, I think it'd be better to allow this package be more system-agnostic.

  5. escauley commented on Oct 18, 2023

    @escauley
    Member

    I described the process we have used for making Conda packages for NIDAP here:

    https://ccbr.github.io/HowTos/Rpackage/setup/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      0