
count common environments like table,figure,verbatim etc..
count_env(article_dir, env_name)
count of the environment, FALSE otherwise
path to the directory which contains RJ article
name of the environment
article_dir <- system.file("examples/article",
package = "texor")
figures <- texor::count_env(article_dir, "figure")
print(paste("figure count : ", figures))
Run the code above in your browser using DataLab