Skip to content

Commit

Permalink
util functions
Browse files Browse the repository at this point in the history
  • Loading branch information
lwjohnst86 committed May 30, 2019
1 parent 1e41454 commit 91ab437
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions R/utils.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@

util_remove_repeated_empty_lines <- function(.lines) {
rle(.lines)$values
}

utils_write_file <- function(.lines, .output_path) {
readr::write_lines(.lines, .output_path)
return(invisible(NULL))
}

0 comments on commit 91ab437

Please sign in to comment.