Build data and AI skills | 50% off

Last chance! 50% off unlimited learning

Sale ends in


styler (version 1.8.1)

ensure_last_n_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_n_empty(x, n = 1)

Arguments

Examples

Run this code
styler:::ensure_last_n_empty("")
styler:::ensure_last_n_empty(letters)
styler:::ensure_last_n_empty(c(letters, "", "", ""))

Run the code above in your browser using DataLab