Skip to content

Commit

Permalink
Fix lints
Browse files Browse the repository at this point in the history
  • Loading branch information
Bisaloo committed Dec 1, 2024
1 parent 4d39068 commit 89e0104
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion R/parse_avantes_binary.R
Original file line number Diff line number Diff line change
Expand Up @@ -318,7 +318,7 @@ lr_parse_rfl8 <- function(filename, specnum = 1L) {
dark_boxcar, white_boxcar, scope_boxcar)

if (specnum == i) {
return(list("data" = data, "metadata" = metadata))
return(list(data = data, metadata = metadata))
}

}
Expand Down
2 changes: 1 addition & 1 deletion R/parse_avantes_converted.R
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ lr_parse_ttt <- function(filename) {

data_final[match(colnames(data), cornames)] <- data

return(list("data" = data_final, "metadata" = metadata))
return(list(data = data_final, metadata = metadata))
}

#' @rdname lr_parse_ttt
Expand Down
2 changes: 1 addition & 1 deletion R/parse_oceanoptics_converted.R
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ lr_parse_jaz <- function(filename) {

data_final[match(colnames(data), cornames)] <- data

return(list("data" = data_final, "metadata" = unname(metadata)))
return(list(data = data_final, metadata = unname(metadata)))
}

#' @rdname lr_parse_jaz
Expand Down
2 changes: 1 addition & 1 deletion R/parse_spc.R
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,6 @@ lr_parse_spc <- function(filename) {

metadata <- rep(NA_character_, 13)

return(list("data" = as.data.frame(data), "metadata" = metadata))
return(list(data = as.data.frame(data), metadata = metadata))

}
4 changes: 2 additions & 2 deletions R/utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ convert_backward_tzdata <- function(tz) {
# new test files.
switch(
tz,
"EST" = "America/Panama",
"CET" = "Europe/Brussels",
EST = "America/Panama",
CET = "Europe/Brussels",

Check warning on line 16 in R/utils.R

View check run for this annotation

Codecov / codecov/patch

R/utils.R#L16

Added line #L16 was not covered by tests
tz
)

Expand Down

0 comments on commit 89e0104

Please sign in to comment.