Skip to content

Commit

Permalink
Update web_tool_script_2.R
Browse files Browse the repository at this point in the history
  • Loading branch information
cjyetman authored Dec 14, 2023
1 parent f4a519c commit 39b97ba
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions web_tool_script_2.R
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,10 @@ if (inherits(port_raw_all_eq, "data.frame") && nrow(port_raw_all_eq) > 0) {
saveRDS(company_all_eq, file.path(pf_file_results_path, "Equity_results_company.rds"))
}

if (data_check(port_all_eq)) {
saveRDS(port_all_eq, file.path(pf_file_results_path, "Equity_results_portfolio.rds"))
}

if (has_map) {
if (data_check(map_eq)) {
saveRDS(map_eq, file.path(pf_file_results_path, "Equity_results_map.rds"))
Expand Down Expand Up @@ -200,6 +204,10 @@ if (inherits(port_raw_all_cb, "data.frame") && nrow(port_raw_all_cb) > 0) {
saveRDS(company_all_cb, file.path(pf_file_results_path, "Bonds_results_company.rds"))
}

if (data_check(port_all_cb)) {
saveRDS(port_all_cb, file.path(pf_file_results_path, "Bonds_results_portfolio.rds"))
}

if (has_map) {
if (data_check(map_cb)) {
saveRDS(map_cb, file.path(pf_file_results_path, "Bonds_results_map.rds"))
Expand Down

0 comments on commit 39b97ba

Please sign in to comment.