百科.dev
全部条目在线工具AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
R

rv

> 编程语言
开源

rv rv 是一种新的方式来以可重现、快速和声明性的方式管理和安装 R 包。文档网站文档网站…

364 stars0 点赞0 次浏览
访问官网GitHub

工具介绍

rv rv 是一种新的方式来以可重现、快速和声明性的方式管理和安装 R 包。文档网站文档网站…

rv

rv is a new way to manage and install your R packages in a reproducible, fast, and declarative way.

Documentation Site

Documentation site with examples, cookbooks, and more detailed instructions available at: https://a2-ai.github.io/rv-docs/

quick start/install

bash
curl -sSL https://raw.githubusercontent.com/A2-ai/rv/refs/heads/main/scripts/install.sh | bash
rv --version

How it works

rv has several top level commands to provide the user with as much flexibility as possible. The two primary commands are:

rv plan # detail what will occur if sync is run
rv sync # synchronize the library, config file, and lock file

The subsequent actions of these commands are controlled by a configuration file that specifies a desired project state by specifying the R version, repositories, and dependencies the project uses. Additionally, specific package and repository level customizations can be specified.

For example, a simple configuration file:

toml
[project]
name = "my first rv project"
r_version = "4.4"

# any repositories, order matters
repositories = [
    { alias = "PPM", url = "https://packagemanager.posit.co/cran/latest" },
]

# top level packages to install
dependencies = [
    "dplyr",
    { name = "ggplot2", install_suggestions = true}
]

Running rv sync will synchronize the library, lock file, and configuration file by installing dplyr, ggplot2, any dependencies those packages require, and the suggested packages for ggplot2. Running rv plan will give you a preview of what rv sync will do.

Additional example projects with more configurations can be found in the example_projects directory of this repository.

Installation

See the documentation site for installation instructions.

Usage

See the documentation site for usage guides and configuration reference.

Contributing

Getting started

To get started with the development of rv, you'll need:

  • Rust
  • and optionally Just

After installing Rust, you can build the project by running:

bash
just run 
// or
cargo run --features=cli --release -- ...

e.g. just run sync or just run add --dry-run.

If you'd like to install the current version of the project as a binary, you can run:

bash
just install
// or
cargo install --path . --features cli

Unit testing

Run the unit tests with:

bash
just test
// or
cargo test --features=cli

Snapshot testing

Snapshots require R version 4.5 (see .github/workflows/ci.yaml for current CI version).

Issues· 0 开放

查看全部 Issues在 GitHub 打开

暂无开放 Issues,或尚未同步最近议题。

> 标签

Rust

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月17日
分类编程语言
定价开源

> 相关工具

T
TypeScript
JavaScript 的超集,为前端与全栈提供静态类型
P
Python
通用编程语言,广泛用于 Web、数据与 AI
G
Go
Google 推出的简洁高效系统语言