knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

tacApp

The goal of tacApp is to help you analyze changes in the power sector between two time periods. The public source code lives in an R package, and the public application is available online.

Usage

Output

A real change is an increase or decrease in the production capacity. A virtual change is a change not in the production capacity but in the ownership of the asset.

Contributing

Code organization

The app is organized in the same was as an R package. Learn more at https://mastering-shiny.org/scaling-packaging.html.

Data

The data is private and not hosted here. The ultimate source is Asset Resolution. The raw data is first processed in the data-raw/ directory in the private repository at https://github.com/2DegreesInvesting/tacAppPrivateData, then processed further in the data-raw/ directory here. The file names and comments should guide you.

file_names <- list.files("data-raw")
file_names

comments <- head(readLines("data-raw/01_valid_rowids.R"))
writeLines(comments)

Deployment

To deploy your application, you can either deploy the app from the IDE itself by clicking on the Publish button in the top right corner of the interface ... or you can use the deployApp command from the rsconnect package.

library(rsconnect)
deployApp()

https://docs.rstudio.com/shinyapps.io/getting-started.html#deploying-your-first-application.

Learn more at https://mastering-shiny.org/scaling-packaging.html#deploying-your-app-package.



2DegreesInvesting/tacApp documentation built on April 26, 2024, 4:39 p.m.