You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Dependency versions probably should be less specific #126
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.
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
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?
@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.
Activity
escauley commentedon Oct 18, 2023
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
kelly-sovacool commentedon Oct 18, 2023
Would it be possible to specify that certain R version in the conda package recipe for NIDAP, rather than enforce exact versions here?
escauley commentedon Oct 18, 2023
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?
kelly-sovacool commentedon Oct 18, 2023
@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.
escauley commentedon Oct 18, 2023
I described the process we have used for making Conda packages for NIDAP here:
https://ccbr.github.io/HowTos/Rpackage/setup/