-
Notifications
You must be signed in to change notification settings - Fork 1
/
README.Rmd
75 lines (53 loc) · 2.51 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# BOE
<!-- badges: start -->
[![R build status](https://github.com/rOpenSpain/BOE/workflows/R-CMD-check/badge.svg)](https://github.com/rOpenSpain/BOE/actions) [![Travis build status](https://travis-ci.org/rOpenSpain/BOE.svg?branch=master)](https://travis-ci.org/rOpenSpain/BOE) [![Codecov test coverage](https://codecov.io/gh/rOpenSpain/BOE/branch/master/graph/badge.svg)](https://codecov.io/gh/rOpenSpain/BOE?branch=master) [![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable)
<!-- badges: end -->
The goal of BOE is to provide tools to retrieve data from [BOE](https://boe.es) 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](https://llrs.github.io/BOE_historico/).
## Installation
You can install it from github with:
``` r
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:
```{r example}
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:
```{r exampleC}
# 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:
```{r browse, echo = TRUE, eval = FALSE}
open_publications(pdfs)
```
If we need to know the BOE code of a publication we can do so with:
```{r codes}
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](https://contributor-covenat.org/version/1/0/0/CODE_OF_CONDUCT.html). By contributing to this project, you agree to abide by its terms.