Hacker News new | ask | show | jobs
by f6v 1918 days ago
Is there a per-project way to manage dependencies yet? I find global package installation to be the biggest weakness of all the R projects out there. Anaconda can help, but it’s not widely used for R projects. And Docker... well, don’t get me started.
4 comments

Yeah. Julia's had that since (at least) 1.0. Environments are built-in, and you specify project dependencies in a Projects.toml file https://pkgdocs.julialang.org/v1/toml-files/.
Small nitpick; its Project.toml (or JuliaProject.toml, to avoid name clashes) not Projects.toml
Or you can activate a local project in a directory, add packages and the Project.toml gets created for you.
Since 0.7 (which was 1.0 with deprecations) In julia 0.6 and before it was exactly as bad as described. (though there were things like Playground.jl to kind of work around it)
I might be misunderstanding your question, but this post is about Julia, not R. Julia has a pretty great per-project dependency management.
Julia is a competitor of R, hence the comparison.
Yes, absolutely. Julia has very strong per-project dependency tracking and reproducibility.
renv is how R projects do per-package dependency management. Before renv there was packrat. This has been a solved problem for years now...
Doesn’t mean it’s adopted though.