Skip to contents

Convert a list of chapter file paths (as produced by list_book_chapters()) into a nested list of chapter texts: list(book -> list(chapter_name -> text)).

Usage

read_book_texts(chapter_list)

Arguments

chapter_list

A named list of character vectors with file paths.

Value

A nested list of character scalars (texts) with chapter basenames as names. Each book element also stores its book name in a book attribute so selecting a single book with $ preserves enough metadata for simulation helpers.