add_char_to_textlines: Add a string to the end of each line in a file.

View source: R/formatting.R

add_char_to_textlinesR Documentation

Add a string to the end of each line in a file.

Description

This can be used to add a double space to the end of each line of an Rmarkdown file, which creates a new line.

Usage

add_char_to_textlines(file_in, file_out, ch = "  ")

Arguments

file_in

Input filename

file_out

Output filename

ch

Character string to add to the end of each line

Value

TRUE if successful, FALSE if not


BIO-RSG/oceancolouR documentation built on April 30, 2024, 7:54 a.m.