convert_1_nn_doc.Rd
Converts 1-nn file from rosstat to tibble
convert_1_nn_doc( path_to_source = "http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-08.doc", access_date = Sys.Date() )
path_to_source | name of the original 1-nn.doc file |
---|---|
access_date | date of access is appended to every observation |
tibble
Converts 1-nn 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: Rifat Enileev
# \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 # one = convert_1_nn_doc() # one = convert_1_nn_doc("http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-08.doc") # two = convert_1_nn_doc("http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-03.doc") # three = convert_1_nn_doc("http://www.gks.ru/bgd/regl/b18_02/IssWWW.exe/Stg/d010/1-11.doc") # }