run_pacta: Run the core steps of the PACTA methodology

View source: R/run_pacta.R

run_pactaR Documentation

Run the core steps of the PACTA methodology

Description

Run the core steps of the PACTA methodology

Usage

run_pacta(env = ".env")

Arguments

env

String. Path to an environment file with pacta variables.

Value

Called for its side effect. Returns the first argument invisibly.

Examples

if (interactive()) {
  local({
    # Create a toy, temporary pacta project
    pacta <- path_home("pacta_tmp")
    local_pacta(pacta)

    # Work from the pacta project for convenicenc
    withr::local_dir(pacta)

    # The ".env" file specifies the setup for input/ output/ and private data
    readLines(".env")

    # Before
    dir_tree()
    run_pacta()
    # After
    dir_tree()
  })
}

2DegreesInvesting/pactaCore documentation built on Feb. 25, 2024, 3:20 a.m.