Dependency management in R

前端 未结 4 1180
野趣味
野趣味 2021-02-02 16:26

Does R have a dependency management tool to facilitate project-specific dependencies? I\'m looking for something akin to Java\'s maven, Ruby\'s bundler, Python\'s virtualenv, No

4条回答
  •  独厮守ぢ
    2021-02-02 17:04

    The packrat package is precisely meant to achieve the following:

    install any required packages into a project-specific library without affecting the global R installation

    It allows installing different versions of the same packages in different project-local package libraries.

    I am adding this answer even though this question is 5 years old, because this solution apparently didn't exist yet at the time the question was asked (as far as I can tell, packrat first appeared on CRAN in 2014).

    Update (November 2019)

    The new R package renv replaced packrat.

提交回复
热议问题