1  Introduction

This is a development version of energyRt documentation, tutorial, and energy systems modeling guide written in a handbook format.

energyRt /ˈɛnərdʒi ɑrt/ is an energy system modeling macro-language that provides a high-level, user-friendly interface for building and analyzing complex energy models within the R environment. It is designed to streamline the process of energy system modeling by abstracting many of the underlying complexities, allowing users to focus on the strategic and analytical aspects of their models rather than the intricacies of coding.

With energyRt, users can define energy systems, input data, and configure scenarios using intuitive, domain-specific commands, making it accessible to both seasoned modelers and those new to the field. The language integrates seamlessly with R’s rich ecosystem of packages, enabling users to leverage powerful data handling and visualization tools within their energy modeling projects.

Furthermore, energyRt supports modular model construction, allowing users to build models incrementally, test components individually, and reuse code across different projects. This modularity, combined with R’s interactive environment, fosters an iterative modeling process where assumptions can be tested, and results can be explored in real-time.

In essence, energyRt simplifies the creation of sophisticated energy system models while providing the flexibility and depth needed for detailed analysis, making it an essential tool for researchers, policymakers, and industry professionals working on long-term energy system planning, energy transition, and decarbonization.

The goal of this book is to provide a comprehensive guide to energy systems modeling using the energyRt package in R. The book is intended for a wide audience, including researchers, engineers, policy analysts, who are interested in modeling energy systems and making informed decisions in the field of macro-energy modeling and planning.