Coder Social home page Coder Social logo

corneeldh / renv Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rstudio/renv

0.0 0.0 0.0 9.36 MB

renv: Project environments for R.

Home Page: https://rstudio.github.io/renv/

License: MIT License

Shell 0.29% R 99.63% CSS 0.02% Makefile 0.02% Batchfile 0.04%

renv's Introduction

renv

Lifecycle: stable CRAN status R-CMD-check 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 version of renv from CRAN with:

install.packages("renv")

You can also install the development version of renv from R-universe with:

install.packages("renv", repos = "https://rstudio.r-universe.dev")

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.

renv's People

Contributors

kevinushey avatar cderv avatar jjallaire avatar krlmlr avatar salim-b avatar vandenman avatar blairj09 avatar khughitt avatar klmr avatar gadenbuie avatar strazto avatar njtierney avatar niknakk avatar randy3k avatar robbfitzsimmons avatar kiwiroy avatar swt30 avatar beansrowning avatar uribo avatar wenjie2wang avatar shrektan avatar zkamvar avatar arbelt avatar josiahparry avatar jorisgoosen avatar jimhester avatar jennybc avatar henrikbengtsson avatar fdetsch avatar edavidaja avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.