Skip to content

Commit

Permalink
Style code (GHA)
Browse files Browse the repository at this point in the history
  • Loading branch information
mhpob committed Feb 27, 2024
1 parent 42a7bff commit ec4c82a
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions R/utilities_make.R
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,14 @@ clean_otn_deployment <- function(deployment) {
} else if (grepl("^csv$", file_ext)) {
# Check for OTN header
if (ncol(read.csv(deployment, nrows = 1)) == 0) {
deployment <- read.csv(deployment, skip = 3,
na.strings = c("NA", ""))
deployment <- read.csv(deployment,
skip = 3,
na.strings = c("NA", "")
)
} else {
deployment <- read.csv(deployment,
na.strings = c("NA", ""))
na.strings = c("NA", "")
)
}
} else {
cli::cli_abort("File type is not xls, xlsx, or csv.")
Expand Down

0 comments on commit ec4c82a

Please sign in to comment.