book_length | R Documentation |
This function takes the path to the '_quarto.yml' file and the average number of words a person can read per minute as input. It reads the '_quarto.yml' file to get the list of chapters in the book project. For each chapter, it calculates the word count and the estimated reading time in minutes based on the average words per minute. It then returns a summary of the book, including the total word count, average reading time, and total reading time in hours, as well as a table with detailed information for each chapter.
book_length(quarto_yml_path = "_quarto.yml", words_per_minute = 200)
quarto_yml_path |
The path to the '_quarto.yml' file (default: "_quarto.yml"). |
words_per_minute |
The average number of words a person can read per minute (default: 200). |
None (prints the book summary and chapter info).
## Not run:
count_words_in_book("_quarto.yml", 200)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.