Converts urov_12kv file from rosstat to tibble

convert_urov_12kv_doc(
  path_to_source = "http://www.gks.ru/free_doc/new_site/population/urov/urov_12kv.doc",
  access_date = Sys.Date()
)

Arguments

path_to_source

name of the original urov_12kv.doc file

access_date

date of access is appended to every observation

Value

tibble

Details

Converts urov_12kv file from rosstat to tibble. The function uses libre office to convert .doc files. So libre office should be installed. And path to libre office should be known by the package. Written by: Vladimir Omelyusik

Examples

# \donttest{ # docxtractr::set_libreoffice_path("/usr/bin/libreoffice") # ubuntu or macos # Sys.setenv(LD_LIBRARY_PATH = "/usr/lib/libreoffice/program/") # ubuntu protection against libreglo.so not found # docxtractr::set_libreoffice_path("C:/Program Files/LibreOffice/program/soffice.exe") # windows # urov_12kv = convert_urov_12kv_doc() # }