Skip to content

Commit

Permalink
delint (#224)
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbarbone committed Dec 4, 2023
1 parent 77d2d66 commit 356b6ed
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions R/write.R
Original file line number Diff line number Diff line change
Expand Up @@ -150,11 +150,14 @@ mark_write_table <- function(
eol = "\n",
na = "",
dec = ".",
# nolint next: object_name_linter.
row.names = FALSE,
# nolint next: object_name_linter.
col.names = NA,
qmethod = "escape"
) {
if (isFALSE(row.names) && isNA(col.names)) {
# nolint next: object_name_linter.
col.names <- TRUE
}

Expand All @@ -176,9 +179,11 @@ mark_write_table <- function(
mark_write_dcf <- function(
x,
con = "",
# nolint next: object_name_linter.
useBytes = FALSE,
indent = 4,
width = Inf,
# nolint next: object_name_linter.
keep.white = NULL
) {
write.dcf(
Expand Down Expand Up @@ -218,7 +223,7 @@ mark_write_yaml <- function(
if (x %in% c("n", "y")) {
x
} else {
tolower(x) == 'true'
tolower(x) == "true"
}
}
)
Expand Down Expand Up @@ -304,4 +309,4 @@ safe_close <- function(con, ...) {
stop(e)
}
)
}
}

0 comments on commit 356b6ed

Please sign in to comment.