CRAN Status CRAN Downloads CRAN download

planr

About

The R package planr is for Supply Chain Management.
The goal is to provide some functions to perform quickly some classic operations in the scope of Demand and Supply Planning or to run the S&OP (Sales & Operations Planning) process.

There are currently 7 groups of functions :

Calculations are performed at monthly or weekly buckets.

To learn how to use those functions, refer to the Cheatsheets and the Get Started sections of the website R planr

In the parts Gallery and Gallery Shiny we can find some examples of visuals and shiny apps using this package.

Installation

To install the CRAN version:

#install.packages("planr")
library(planr)

To install the latest development version from GitHub:

library(devtools)
#install_github("nguyennico/planr")

library(planr)

Get started

This section introduces the different functions of the package planr through :

We will start with a few functions to calculate projected inventories and coverages.

Projected Inventories & Coverages

The 1st, basic (light) function : light_proj_inv()

Calculated Projected Inventories using light_proj_inv()

Calculation & Analysis

The 2nd function : proj_inv()

Calculated Projected Inventories using proj_inv()

The 3rd function : const_dmd()

Calculated Projected Inventories and Constrained Demand using const_dmd()

Replenishment Plan

A function to calculate a Replenishment Plan (also called DRP : Distribution Requirement Planning).

The 4th function : drp()

Calculated Projected Inventories and Replenishment Plan using drp()

Conversion Monthly to Weekly Bucket

The 5th function : month_to_week()

The 5bis function : month_to_weekx()

Short Shelf Life (SSL)

The 6th function : ssl()

Allows to calculate the projected Short Shelf Life quantities from based on :

This leads to :

Projected In Transit

The 7th function : proj_git()

Allows to calculate the projected In Transit quantities to one Entity and a defined product.

It takes into consideration :

It can be useful to :

R book for Demand and Supply Planning

Hey, do you want a book to learn how to master R in Supply Chain?

eBook Demand and Supply Planning using R

Book Summary

Do you work in Supply Chain and are you looking for a way to perform easily some data processing, run demand and supply planning calculations and share your results into an interactive web app?

If yes, then this book is for you!

It provides a comprehensive, hands-on guide to leverage the robust capabilities of the R statistical programming language to address the core demand and supply planning challenges.

From data acquisition, cleaning and transformation to advanced statistical modeling, data visualization, and automation; you will learn how to plan your demand and supply, balance your charge and capacity, model an End-to-End supply chain network, and run different scenarios.

This book guides you through practical applications of key R packages for demand forecasting, inventory management, Distribution Requirements Planning (DRP), scenarios optimization and the creation of dynamic (shiny) web apps.

R is a popular open-source programming language and is specifically designed for statistical computing, data analysis, and high-quality graphics. It is widely used by researchers, data scientists, and statisticians for its extensive libraries and robust data visualization tools. R consistently ranks among the top 10 programming languages worldwide.

Key Topics Covered in this book

Designed for supply chain professionals, students, data analysts, and R users looking for practical applications, this book creates the link between theoretical data science knowledge and real-world supply chain implementation.

You will get the skills to develop efficient, custom, and data-driven Demand & Supply planning solutions.

Ready? Let’s start!

Some links about planr R Consortium interview :