Find the total number of lines of R code
lines_of_r_code(x = ".", skip_empty = TRUE)
Directory to search for files
Logical, if TRUE will not count lines that are empty or only contain a bracket or quotation mark.
Tries to read each file in the directory that ends in .R or .r and sums together. Files that fail to read are not counted.
integer for the number of lines in all applicable files
lines_of_r_code(system.file()) lines_of_r_code(system.file(), skip_empty = FALSE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.