Giter Site home page Giter Site logo

cookiecutter-r-project's Introduction

cookiecutter-r-project

A template for R projects made using cookiecutter.

Structure

.
├── LICENSE
├── .Rprofile
├── .gitignore
├── README.md
├── analysis
├── data
│   ├── external
│   ├── interim
│   ├── processed
│   └── raw
├── etl
├── notebooks  
├── references
├── reports
├── viz
│   └── figures
└── {{cookiecutter.project_slug}}.Rproj
  • LICENSE
    • License file for the project.
    • Availiable options include MIT and BSD-3-Clause.
  • .Rprofile
    • Stores environment variables for local R projects.
  • .gitignore
    • Ignores R user profile temporary files.
  • README.md
    • Project specific readme.
  • analysis
    • R code that involves analysis on already-cleaned data. Code for cleaning data should go in etl.
    • Multiple analysis files are numbered sequentially.
  • data
    • This is the directory used to store all of the project's data. All files should go into one of the following folders.
    • data/external
      • Data from third party sources.
    • data/interim
      • Intermediate data that has been transformed.
    • data/processed
      • The final, canonical data sets for analysis.
    • data/raw
      • The original, inmutable data dump.
  • etl
    • ETL (extract, transform, load) scripts for reading in source data, cleaning and standardizing it to prepare for analysis go here.
      • Multiple ETL files are numbered sequentially.
      • Joins are included in ETL process.
  • notebooks
    • Any R Markdown files go here.
  • references
    • Data dictionaries, manuals, and all other exploratory materials.
  • reports
    • Generated analysis as HTML, PDF, LaTeX, etc.
  • viz
    • Graphics and visualization development specific work should go here.
      • Multiple viz files are numbered sequentially.
    • viz/figures
      • Generated graphics and figures to be used in reporting.
  • {{cookiecutter.project_slug}}.Rproj
    • This is the .Rproj file that can be used with RStudio to work within the project.

Requirements

This can be installed using either

pip install cookiecutter

or

conda install -c conda-forge cookiecutter

Installation

In the folder where you want to generate the project, run:

cookiecutter https://github.com/camartinezbu/cookiecutter-r-project

Credits

This template was designed based on jvelesmagic's Cookiecutter Conda Data Science and AP's R Cookicutter.

Extra

Check out a similar template for python here.

cookiecutter-r-project's People

Contributors

camartinezbu avatar

Watchers

 avatar  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.