Skip to contents

This function reads a file, splits it into chunks based on empty lines, and preserves the indentation of each line within a chunk.

Usage

split_file(filename)

Arguments

filename

A character string specifying the path to the file to be split.

Value

A list of character vectors, where each vector represents a chunk of the file.