knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  fig.path = "man/figures/README-",
  out.width = "100%"
)

BOE

R build status Travis build status Codecov test coverage Lifecycle: stable

The goal of BOE is to provide tools to retrieve data from BOE either from the Boletín Oficial del Estado or from the BORME Boletín Oficial del Registro Mercantil del Estado.

You can see examples of what is capable on the vignette and with more data this website.

Installation

You can install it from github with:

remotes::install_github("rOpenSpain/BOE")

Examples

This is a basic example which shows you how to solve find the identifiers of some elements. The most important data is the sumario (summary) which can be retrieved by the date:

library("BOE")
today <- Sys.Date()
sumario_hoy <- retrieve_sumario(today)
head(sumario_hoy)

If we are interested on a publication we can obtain the url of the publication with:

# Say we are interested on the first result:
pdfs <- url_publications(sumario_hoy[1, ])
pdfs # And we can download it with download.file(pdfs)

We can open the publication from R with:

open_publications(pdfs)

If we need to know the BOE code of a publication we can do so with:

sumario_nbo(as.Date("2019/11/15"))
sumario_nbo(as.Date("2019/11/15"), journal = "BORME")
# The codes of publication is the year and the number of said publication
sumario_nbo("2017", "275") 
sumario_cve("2017", "275", journal = "BORME") 
anuncio_cve("2012", "32498") 
disposicion_cve("2012", "32498")

Code of Conduct

Please note that the BOE project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.



rOpenSpain/BOE documentation built on Dec. 26, 2024, 2:50 p.m.