Skip to content

Commit

Permalink
Build rostemplate
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Apr 3, 2021
1 parent 5d01988 commit e03ecd5
Show file tree
Hide file tree
Showing 9 changed files with 64 additions and 23 deletions.
Expand Up @@ -3,11 +3,11 @@ on:
branches:
- main
- master
name: pkgdown-gh-pages

name: rostemplate-gh-pages

jobs:
pkgdown-gh-pages:
rostemplate-gh-pages:
runs-on: macOS-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -21,6 +21,7 @@ jobs:
- name: Query dependencies
run: |
install.packages('remotes')
install.packages('devtools')
saveRDS(remotes::dev_package_deps(dependencies = TRUE), ".github/depends.Rds", version = 2)
writeLines(sprintf("R-%i.%i", getRversion()$major, getRversion()$minor), ".github/R-version")
shell: Rscript {0}
Expand All @@ -35,7 +36,8 @@ jobs:
- name: Install dependencies
run: |
remotes::install_deps(dependencies = TRUE)
install.packages("pkgdown", type = "binary")
remotes::install_github("ropenspain/rostemplate", dependencies = TRUE, force = TRUE)
shell: Rscript {0}

- name: Install package
Expand All @@ -45,4 +47,4 @@ jobs:
run: |
git config --local user.email "actions@github.com"
git config --local user.name "GitHub Actions"
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE)'
Rscript -e 'pkgdown::deploy_to_branch(new_process = FALSE, clean = TRUE)'
4 changes: 2 additions & 2 deletions DESCRIPTION
Expand Up @@ -16,8 +16,8 @@ Description: Tools to download data series from 'Banco de España' ('BdE') on
License: GPL (>= 3)
Encoding: UTF-8
LazyData: true
BugReports: https://github.com/dieghernan/tidyBdE/issues
URL: https://dieghernan.github.io/tidyBdE/, https://github.com/dieghernan/tidyBdE
BugReports: https://github.com/rOpenSpain/tidyBdE/issues
URL: https://ropenspain.github.io/tidyBdE/, https://github.com/rOpenSpain/tidyBdE
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.1.1
Depends:
Expand Down
2 changes: 1 addition & 1 deletion R/catalogs.R
Expand Up @@ -238,7 +238,7 @@ bde_catalog_update <-
}
}

#' Update BdE catalogs
#' Search BdE catalogs
#'
#' @export
#'
Expand Down
9 changes: 4 additions & 5 deletions README.Rmd
Expand Up @@ -22,11 +22,10 @@ knitr::opts_chunk$set(

<!-- badges: start -->

[![R-CMD-check](https://github.com/dieghernan/tidyBdE/actions/workflows/check-full.yaml/badge.svg)](https://github.com/dieghernan/tidyBdE/actions/workflows/check-full.yaml)
[![CodeFactor](https://www.codefactor.io/repository/github/dieghernan/tidybde/badge)](https://www.codefactor.io/repository/github/dieghernan/tidybde)
[![R-CMD-check](https://github.com/rOpenSpain/tidyBdE/actions/workflows/check-full.yaml/badge.svg)](https://github.com/rOpenSpain/tidyBdE/actions/workflows/check-full.yaml)
![GitHub R package
version](https://img.shields.io/github/r-package/v/dieghernan/tidyBdE?label=dev)
[![codecov](https://codecov.io/gh/dieghernan/tidyBdE/branch/main/graph/badge.svg)](https://codecov.io/gh/dieghernan/tidyBdE)
version](https://img.shields.io/github/r-package/v/ropenspain/tidyBdE?label=dev)
[![codecov](https://codecov.io/gh/ropenspain/tidyBdE/branch/main/graph/badge.svg)](https://codecov.io/gh/ropenspain/tidyBdE)

<!-- badges: end -->

Expand All @@ -42,7 +41,7 @@ You can install the developing version of **tidyBdE** with:

``` r
library(remotes)
install_github("dieghernan/tidyBdE")
install_github("ropenspain/tidyBdE")
```

## Examples
Expand Down
9 changes: 4 additions & 5 deletions README.md
Expand Up @@ -5,11 +5,10 @@

<!-- badges: start -->

[![R-CMD-check](https://github.com/dieghernan/tidyBdE/actions/workflows/check-full.yaml/badge.svg)](https://github.com/dieghernan/tidyBdE/actions/workflows/check-full.yaml)
[![CodeFactor](https://www.codefactor.io/repository/github/dieghernan/tidybde/badge)](https://www.codefactor.io/repository/github/dieghernan/tidybde)
[![R-CMD-check](https://github.com/rOpenSpain/tidyBdE/actions/workflows/check-full.yaml/badge.svg)](https://github.com/rOpenSpain/tidyBdE/actions/workflows/check-full.yaml)
![GitHub R package
version](https://img.shields.io/github/r-package/v/dieghernan/tidyBdE?label=dev)
[![codecov](https://codecov.io/gh/dieghernan/tidyBdE/branch/main/graph/badge.svg)](https://codecov.io/gh/dieghernan/tidyBdE)
version](https://img.shields.io/github/r-package/v/ropenspain/tidyBdE?label=dev)
[![codecov](https://codecov.io/gh/ropenspain/tidyBdE/branch/main/graph/badge.svg)](https://codecov.io/gh/ropenspain/tidyBdE)

<!-- badges: end -->

Expand All @@ -25,7 +24,7 @@ You can install the developing version of **tidyBdE** with:

``` r
library(remotes)
install_github("dieghernan/tidyBdE")
install_github("ropenspain/tidyBdE")
```

## Examples
Expand Down
2 changes: 1 addition & 1 deletion inst/CITATION
Expand Up @@ -2,7 +2,7 @@ citHeader("To cite tidyBdE in publications use:")

year = format(Sys.time(), "%Y")
vers = paste('R package version', meta$Version)
url = 'https://dieghernan.github.io/tidyBdE/'
url = 'https://ropenspain.github.io/tidyBdE/'

citEntry(
,
Expand Down
2 changes: 1 addition & 1 deletion man/bde_catalog_search.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions man/tidyBdE-package.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

41 changes: 41 additions & 0 deletions pkgdown/_pkgdown.yml
@@ -0,0 +1,41 @@
url: https://ropenspain.github.io/tidyBdE/


reference:
- title: "Catalogs"
desc: Tools for working with BdE catalogs.
contents:
- has_concept("catalog")

- title: "Series"
desc: Tools for working with BdE series.
contents:
- has_concept("series")

- title: "BdE Indicators"
desc: Selected macroeconomic indicators of Spain.
contents:
- has_concept("indicators")

- title: "Plot utils"
desc: Complementary functions for plotting with `ggplot2`.
contents:
- has_concept("bde_plot")

- title: Utils
contents:
- has_concept("utils")

- title: "About the package"
contents:
- tidyBdE-package

figures:
fig.width: 7.3
fig.retina: 2

template:
package: rostemplate
params:
ganalytics: 'G-CW2RTVRRVF'

0 comments on commit e03ecd5

Please sign in to comment.