Skip to content

Commit

Permalink
Output manifest and update param names
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexAxthelm committed Dec 11, 2024
1 parent dafd6aa commit 0ec48f2
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 2 deletions.
35 changes: 35 additions & 0 deletions R/build_dashboard.R
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,39 @@ build_dashboard <- function(
)
}

out <- list(
input_files = c(
list.files(
dashboard_data_dir,
full.names = TRUE,
recursive = TRUE
),
list.files(
dashboard_skeleton_files_dir,
full.names = TRUE,
recursive = TRUE
),
list.files(
analysis_output_dir,
full.names = TRUE,
recursive = TRUE
),
list.files(
benchmarks_dir,
full.names = TRUE,
recursive = TRUE
)
),
output_files = c(
list.files(
dashboard_output_dir,
full.names = TRUE,
recursive = TRUE
)
),
params = params
)

Check warning on line 67 in R/build_dashboard.R

View check run for this annotation

Codecov / codecov/patch

R/build_dashboard.R#L36-L67

Added lines #L36 - L67 were not covered by tests

return(out)

Check warning on line 69 in R/build_dashboard.R

View check run for this annotation

Codecov / codecov/patch

R/build_dashboard.R#L69

Added line #L69 was not covered by tests

}
4 changes: 2 additions & 2 deletions R/prepare_pacta_dashboard_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ log_info("Preparing data for the PACTA dashboard.")
# portfolio/user parameters ----------------------------------------------------
log_debug("Reading portfolio/user parameters.")

Check warning on line 11 in R/prepare_pacta_dashboard_data.R

View check run for this annotation

Codecov / codecov/patch

R/prepare_pacta_dashboard_data.R#L11

Added line #L11 was not covered by tests

investor_name <- params[["user"]][["investor_name"]]
investor_name <- params[["user"]][["name"]]
portfolio_name <- params[["portfolio"]][["name"]]
peer_group <- params[["user"]][["peerGroup"]]
language_select <- params[["user"]][["languageSelect"]]

Check warning on line 16 in R/prepare_pacta_dashboard_data.R

View check run for this annotation

Codecov / codecov/patch

R/prepare_pacta_dashboard_data.R#L13-L16

Added lines #L13 - L16 were not covered by tests

currency_exchange_value <- params[["user"]][["currencyExchangeValue"]]
display_currency <- params[["user"]][["displayCurrency"]]

Check warning on line 19 in R/prepare_pacta_dashboard_data.R

View check run for this annotation

Codecov / codecov/patch

R/prepare_pacta_dashboard_data.R#L18-L19

Added lines #L18 - L19 were not covered by tests

select_scenario_other <- params[["reporting"]][["selectOther"]]
select_scenario_other <- params[["reporting"]][["scenarioOther"]]
select_scenario <- params[["reporting"]][["selectScenario"]]

Check warning on line 22 in R/prepare_pacta_dashboard_data.R

View check run for this annotation

Codecov / codecov/patch

R/prepare_pacta_dashboard_data.R#L21-L22

Added lines #L21 - L22 were not covered by tests

green_techs <- params[["reporting"]][["greenTechs"]]
Expand Down

0 comments on commit 0ec48f2

Please sign in to comment.