count_words: A function for counting words in an Rmarkdown/Quarto...

View source: R/count_words.R

count_wordsR Documentation

A function for counting words in an Rmarkdown/Quarto document. taken from https://github.com/jvcasillas/academicWriteR/blob/master/R/count_words.R

Description

This function takes a path to a .Rmd file and returns a word count. For best results each sentence should start on a new line. Inline code chunks should also start on a new line.

Usage

count_words(file)

Arguments

file

A path to a .Rmd/.qmd file

Examples

# count_words("test.Rmd")

uoepsy/junk documentation built on April 3, 2025, 1:22 p.m.