Learn R Programming

styler (version 1.3.0)

ensure_last_is_empty: Ensure there is one (and only one) blank line at the end of a vector

Description

Ensure there is one (and only one) blank line at the end of a vector

Usage

ensure_last_is_empty(x)

Arguments

Examples

Run this code
# NOT RUN {
styler:::ensure_last_is_empty("")
styler:::ensure_last_is_empty(letters)
styler:::ensure_last_is_empty(c(letters, "", "", ""))
# }

Run the code above in your browser using DataLab