Repository navigation
Replies: 1 comment 2 replies
|
Related: the |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I've been thinking about whether
rproj.toml(or something else) should eventually support something like Pixi's features and environments.There are already real use cases for dependencies that are needed for development/tooling, but should not necessarily be part of the main project environment.
For example, vscode-R may need packages such as languageserver, sess, and a graphics backend (httpgd, jgd).
This has already caused some friction with project package managers: see REditorSupport/vscode-R#1712 and A2-ai/rv#336.
A single
devdependency group may not be enough (related to REditorSupport/vscode-R#1728).Different users may need different tooling (
vscode,nvim, package development, documentation, etc.), and in some cases tooling dependencies should have their own dependency solution/library so that they cannot conflict with the project's dependencies.Pixi handles this by separating reusable features from independently selectable environments.
I experimented with a similar
groups+environmentsmodel in rsolve.I noticed that
rproj.tomlalready hasoptional-dependenciesandinclude-groups, although they do not seem to have full semantics yet.Would it make sense to define these around a more general feature/environment model before the manifest format stabilizes?
I'm not particularly attached to the syntax.
My main interest is being able to declare optional dependency sets in the manifest, compose them, and optionally resolve/install some of them into isolated libraries.
All reactions