Skip to content

Commit

Permalink
Add comments on temp register.csv
Browse files Browse the repository at this point in the history
  • Loading branch information
angelina-momin committed Jun 18, 2024
1 parent e652a2c commit 139600c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions R/utils_create_filtered_register_csvs.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ create_filtered_register_csvs <- function(filter_by, register){
for (filter in filter_by){
column_name <- determine_filter_column_name(filter)

# Read the temp register.csv if filter type is codecheckers and delete the temp file
if (filter == "codecheckers"){
register <- read.csv("docs/temp_register_codechecker.csv", as.is = TRUE)
# Once the temp_register is loaded, we can remove it
Expand Down
3 changes: 3 additions & 0 deletions R/utils_preprocess_register.R
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,9 @@ create_temp_register_with_codechecker <- function(register_table){
#' @return The preprocessed register table
preprocess_register <- function(register, filter_by) {
register_table <- register

# Creating a temp register.csv file with a codechecker column which is needed to
# filter the registers by codecheckers
if ("codecheckers" %in% filter_by){
register_table <- add_codechecker(register_table, register)
create_temp_register_with_codechecker(register_table)
Expand Down

0 comments on commit 139600c

Please sign in to comment.