Giter Site home page Giter Site logo

r-project-template's Introduction

Project name

What is this project about?

summarize in three sentences what this project is about and what central features it has.

Setup

renv: Installing Packages

renv brings project-local R dependency management to our project. renv uses a lockfile (renv.lock) to capture the state of your library at some point in time. Based on renv.lock, RStudio should automatically recognize that it’s being needed, thereby downloading and installing the appropriate version of renv into the project library. After this has completed, you can then use renv::restore() to restore the project library locally on your machine. When new packages are used, install.packages() does not install packages globally, it does in an environment only used for our project. You can find this library in renv/library (but it should not be necessary to look at it). If renv fails, you will be presented something in the like of when you first start R after cloning the repo:

renv::restore()
This project has not yet been activated. Activating this project will ensure the project library is used during restore. Please see ?renv::activate for more details. Would you like to activate this project before restore? [Y/n]:

Follow along with Y and renv::restore() will do its work downloading and installing all dependencies. renv uses a local .Rprofile and renv/activate.R script to handle our project dependencies.

Adding a new package

If you need to add a new package, you can install it as usual (install.packages etc.). Then, to add your package to the renv.lock:

renv::snapshot()

and commit and push your renv.lock.

Other team members can then run renv::restore() to install the added package(s) on their laptop.

Data

You need the following data files in order to run this project:

system2("tree", c("data/raw")) # works on mac and potentially linux. 

Developer information

[the following can also be moved to the wiki if you decide to have one]

Definition of Done

Default Definition of Done can be found here. Adapt if needed.

Code styling

How to operate this project?

[the following can also be moved to the wiki if you decide to have one]

explain how the output(s) of this project can be handled/operated, for example:

  • how to knit the report(s)
  • where to create/find the data visualizations
  • how to update data
  • what would need to be updated if someone wanted to re-run your analysis with different data

Limitations

be honest about the limitations of your project, e.g.:

  • methodological: maybe another model would be more suitable?
  • reproducibility: what are limits of reproducibility? is there something hard-coded/specific to the data that you used?
  • best practices: maybe some code is particularly messy and people working on it in the future should know about it in advance?

r-project-template's People

Contributors

pr130 avatar

Stargazers

Michael Schischkin avatar

Watchers

James Cloos avatar Arndt Leininger avatar Konstantin Gavras avatar Johannes J. Mueller 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.