---
execute: 
  eval: false
---


## Install the package {#install-package}

Install from CRAN:

```{r}
install.packages("spanishoddata")
```



<details><summary>Alternative installation and developemnt</summary>

You can also install the latest development version of the package from rOpenSpain R universe:

```{r}
install.packages("spanishoddata",
  repos = c("https://ropenspain.r-universe.dev",
    "https://cloud.r-project.org"))
```


Alternative way to install the development version from GitHub:

```{r}
if (!require("remotes")) install.packages("remotes")

remotes::install_github("rOpenSpain/spanishoddata",
  force = TRUE, dependencies = TRUE)
```

**For Developers**

To load the package locally, clone it and navigate to the root of the package in the terminal, e.g. with the following:

```bash
gh repo clone rOpenSpain/spanishoddata
code spanishoddata
# with rstudio:
rstudio spanishoddata/spanishoddata.Rproj
```

Then run the following command from the R console:

```{r}
#| eval: false
devtools::load_all()
```

</details>
