Skip to content

Commit

Permalink
update: added "_series" to load in "existing_data"
Browse files Browse the repository at this point in the history
kyleGrealis committed Nov 2, 2024
1 parent 7952f37 commit 4dcb11b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions inst/updates/nascar_update.R
Original file line number Diff line number Diff line change
@@ -94,13 +94,13 @@ update_nascar_data <- function(debug = FALSE, target_year = NULL, target_race =
# Load the specific dataset based on series name
if (series_name == "cup") {
load(real_data_file)
existing_data <- cup
existing_data <- cup_series
} else if (series_name == "xfinity") {
load(real_data_file)
existing_data <- xfinity
existing_data <- xfinity_series
} else if (series_name == "truck") {
load(real_data_file)
existing_data <- truck
existing_data <- truck_series
}
}, error = function(e) {
# If file doesn't exist, create empty data frame with required columns

0 comments on commit 4dcb11b

Please sign in to comment.