renv

renv: Project environments for R.

  • 所有者: rstudio/renv
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

renv

Lifecycle: stable
CRAN status
Travis build status
AppVeyor build status
Codecov test coverage

Overview

The renv package helps you create reproducible environments for
your R projects. Use renv to make your R projects more:

Isolated: Installing a new or updated package for one project won't break
your other projects, and vice versa. That's because renv gives each project
its own private package library.

Portable: Easily transport your projects from one computer to another, even
across different platforms. renv makes it easy to install the packages your
project depends on.

Reproducible: renv records the exact package versions you depend on, and
ensures those exact versions are the ones that get installed wherever you go.

Installation

Install the latest development version of renv with:

if (!requireNamespace("remotes"))
  install.packages("remotes")

remotes::install_github("rstudio/renv")

Workflow

Use renv::init() to initialize renv with a new or existing project. This
will set up your project with a private library, and also make sure to install
all of the packages you're using into that library. The packages used in your
project will be recorded into a lockfile, called renv.lock.

As you work in your project, you may need to install or upgrade different
packages. As these packages are installed, renv will automatically write
renv.lock for you. The renv.lock lockfile records the state of your project's
private library, and can be used to restore the state of that library as required.

Later, if you need to port your project to a new machine, you can call
renv::restore() to reinstall all of the packages as declared in the lockfile.

Learning More

You can browse the package documentation online at
https://rstudio.github.io/renv/.

If this is your first time using renv, we strongly recommend reading the
Introduction to renv
vignette.

If you have a question about renv, please first check the
FAQ to see whether your
question has already been addressed. If it hasn't, please feel free to either
ask on the RStudio Community forums.

If you believe you've found a bug in renv, please file a bug (and, if
possible, a reproducible example) at
https://github.com/rstudio/renv/issues.

主要指標

概覽
名稱與所有者rstudio/renv
主編程語言R
編程語言R (語言數: 6)
平台
許可證MIT License
所有者活动
創建於2018-11-28 20:25:39
推送於2025-05-17 05:34:33
最后一次提交
發布數2139
最新版本名稱v1.1.4 (發布於 )
第一版名稱0.1.0-1 (發布於 )
用户参与
星數1.1k
關注者數46
派生數155
提交數3.2k
已啟用問題?
問題數1696
打開的問題數191
拉請求數375
打開的拉請求數2
關閉的拉請求數59
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?