-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/ipeaGIT/geocodebr
- Loading branch information
Showing
29 changed files
with
854 additions
and
453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,4 +12,6 @@ | |
.RData | ||
^_pkgdown\.yml$ | ||
^pkgdown$ | ||
|
||
^\.pre-commit-config\.yaml$ | ||
^README\.Rmd$ | ||
^codemeta\.json$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,58 +2,30 @@ on: | |
push: | ||
branches: | ||
- main | ||
tags: | ||
-'*' | ||
|
||
name: pkgdown | ||
|
||
jobs: | ||
pkgdown: | ||
runs-on: ubuntu-22.04 | ||
runs-on: ubuntu-20.04 | ||
env: | ||
RSPM: https://packagemanager.rstudio.com/cran/__linux__/jammy/latest | ||
RSPM: https://packagemanager.rstudio.com/cran/__linux__/focal/latest | ||
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: r-lib/actions/setup-r@v2 | ||
id: install-r | ||
|
||
- uses: r-lib/actions/setup-pandoc@v2 | ||
|
||
- name: Install pak and query dependencies | ||
run: | | ||
install.packages("pak", repos = "https://r-lib.github.io/p/pak/dev/") | ||
saveRDS(pak::pkg_deps("local::.", dependencies = TRUE), ".github/r-depends.rds") | ||
shell: Rscript {0} | ||
- uses: r-lib/actions/setup-r@v2 | ||
|
||
- name: Restore R package cache | ||
uses: actions/cache@v2 | ||
- uses: r-lib/actions/setup-r-dependencies@v2 | ||
with: | ||
path: | | ||
${{ env.R_LIBS_USER }}/* | ||
!${{ env.R_LIBS_USER }}/pak | ||
key: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }} | ||
restore-keys: ubuntu-22.04-${{ steps.install-r.outputs.installed-r-version }}-1- | ||
|
||
- name: Install system dependencies | ||
run: | | ||
pak::local_system_requirements(execute = TRUE) | ||
pak::pkg_system_requirements("pkgdown", execute = TRUE) | ||
shell: Rscript {0} | ||
|
||
- name: Install dependencies | ||
run: | | ||
pak::local_install_dev_deps(upgrade = TRUE) | ||
pak::pkg_install("pkgdown") | ||
shell: Rscript {0} | ||
|
||
- name: Install package | ||
run: R CMD INSTALL . | ||
extra-packages: any::pkgdown, local::. | ||
needs: website | ||
|
||
- name: Build and deploy pkgdown site | ||
run: | | ||
git config --local user.name "$GITHUB_ACTOR" | ||
git config --local user.email "[email protected].github.com" | ||
git config --local user.name "GitHub Actions" | ||
git config --local user.email "actions@github.com" | ||
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/lorenzwalthert/precommit | ||
rev: v0.4.3.9001 | ||
hooks: | ||
- id: readme-rmd-rendered | ||
- id: codemeta-description-updated | ||
- id: pkgdown |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,53 +1,55 @@ | ||
Type: Package | ||
Package: geocodebr | ||
Title: Geocode Brazilian Addresses with CNEFE | ||
Version: 0.0.2 | ||
Authors@R: | ||
c(person(given = "Daniel", | ||
family = "Herszenhut", | ||
role = c("aut", "cre"), | ||
email = "[email protected]", | ||
comment = c(ORCID = "0000-0001-8066-1105")), | ||
person(given = "Rafael H. M.", | ||
family = "Pereira", | ||
role = "aut", | ||
comment = c(ORCID = "0000-0003-2125-7465")), | ||
person(given = "Ipea - Institute for Applied Economic Research", | ||
role = c("cph", "fnd"))) | ||
Description: Geocode Brazilian addresses based on a modified version of the | ||
Cadastro Nacional de Endereços para Fins Estatísticos (CNEFE), | ||
published by Brazil official statistics and geography office IBGE | ||
<https://www.ibge.gov.br/estatisticas/sociais/populacao/38734-cadastro-nacional-de-enderecos-para-fins-estatisticos.html>. | ||
Version: 0.0.0.9000 | ||
Authors@R: c( | ||
person("Daniel", "Herszenhut", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0001-8066-1105")), | ||
person("Rafael H. M.", "Pereira", role = "aut", | ||
comment = c(ORCID = "0000-0003-2125-7465")), | ||
person("Ipea - Institute for Applied Economic Research", role = c("cph", "fnd")) | ||
) | ||
Description: Enables one to geocode Brazilian addresses using the National | ||
Registry of Addresses for Statistical Purposes (english for Cadastro | ||
Nacional de Endereços para Fins Estatísticos, CNEFE). CNEFE is | ||
published by the Brazilian official statistics and geography office, | ||
IBGE | ||
(<https://www.ibge.gov.br/estatisticas/sociais/populacao/38734-cadastro-nacional-de-enderecos-para-fins-estatisticos.html>). | ||
License: MIT + file LICENSE | ||
URL: https://github.com/ipeaGIT/geocodebr, https://ipeagit.github.io/geocodebr/ | ||
URL: https://github.com/ipeaGIT/geocodebr, | ||
https://ipeagit.github.io/geocodebr/ | ||
BugReports: https://github.com/ipeaGIT/geocodebr/issues | ||
Depends: | ||
R (>= 4.1.0) | ||
Imports: | ||
archive, | ||
arrow (>= 15.0.1), | ||
checkmate, | ||
curl (>= 5.0.0), | ||
cli, | ||
data.table, | ||
dplyr, | ||
enderecobr, | ||
fs, | ||
glue, | ||
httr2, | ||
parallel, | ||
purrr, | ||
tools, | ||
utils | ||
utils, | ||
zip | ||
Suggests: | ||
covr, | ||
DBI, | ||
dbplyr, | ||
duckdb, | ||
geobr, | ||
ggplot2 (>= 3.3.1), | ||
rmarkdown, | ||
knitr, | ||
rmarkdown, | ||
scales, | ||
testthat | ||
testthat (>= 3.0.0) | ||
VignetteBuilder: | ||
knitr | ||
Config/testthat/edition: 3 | ||
Encoding: UTF-8 | ||
Roxygen: list(markdown = TRUE) | ||
RoxygenNote: 7.3.2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.