This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "Insert `flextable`s into Word documents generated with `rmarkdown`" | |
author: Maxim Nazarov | |
output: | |
word_document: | |
keep_md: yes | |
html_document: | |
keep_md: yes | |
smart: false | |
--- |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Check all three-letter acronyms (TLA) in Wikipedia | |
## Assuming TLA is unused if no wikipedia entry with its name exists | |
library(rvest) | |
# splits from https://en.wikipedia.org/wiki/Wikipedia:TLAs | |
ranges <- c("AAA_to_DZZ", "EAA_to_HZZ", "IAA_to_LZZ", "MAA_to_PZZ", "QAA_to_TZZ", "UAA_to_XZZ", "YAA_to_ZZZ") | |
baseUrl <- "https://en.wikipedia.org/wiki/Wikipedia:TLAs_from_" | |
all <- c() |