From ab7674eae9d64b2b8aea976e76dc82d739f53530 Mon Sep 17 00:00:00 2001 From: Dennis Irorere <35724017+denironyx@users.noreply.github.com> Date: Sat, 15 Jun 2024 22:47:13 +0100 Subject: [PATCH] github action added --- .Rbuildignore | 2 ++ .github/.gitignore | 1 + .github/workflows/R-CMD-check.yaml | 52 +++++++++++++++++++++++++++++ README.Rmd | 46 +++++++++++++++++++++++++ README.md | 36 ++++++++++++++++++++ man/figures/README-pressure-1.png | Bin 0 -> 3744 bytes 6 files changed, 137 insertions(+) create mode 100644 .github/.gitignore create mode 100644 .github/workflows/R-CMD-check.yaml create mode 100644 README.Rmd create mode 100644 README.md create mode 100644 man/figures/README-pressure-1.png diff --git a/.Rbuildignore b/.Rbuildignore index 09a3644..0b362e3 100644 --- a/.Rbuildignore +++ b/.Rbuildignore @@ -3,3 +3,5 @@ ^.*\.Rproj$ ^\.Rproj\.user$ ^overturemapsr\.Rproj$ +^\.github$ +^README\.Rmd$ diff --git a/.github/.gitignore b/.github/.gitignore new file mode 100644 index 0000000..2d19fc7 --- /dev/null +++ b/.github/.gitignore @@ -0,0 +1 @@ +*.html diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml new file mode 100644 index 0000000..0f2fe08 --- /dev/null +++ b/.github/workflows/R-CMD-check.yaml @@ -0,0 +1,52 @@ +# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples +# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help +on: + push: + branches: [main, master] + pull_request: + branches: [main, master] + +name: R-CMD-check + +permissions: read-all + +jobs: + R-CMD-check: + runs-on: ${{ matrix.config.os }} + + name: ${{ matrix.config.os }} (${{ matrix.config.r }}) + + strategy: + fail-fast: false + matrix: + config: + - {os: macos-latest, r: 'release'} + - {os: windows-latest, r: 'release'} + - {os: ubuntu-latest, r: 'devel', http-user-agent: 'release'} + - {os: ubuntu-latest, r: 'release'} + - {os: ubuntu-latest, r: 'oldrel-1'} + + env: + GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} + R_KEEP_PKG_SOURCE: yes + + steps: + - uses: actions/checkout@v4 + + - uses: r-lib/actions/setup-pandoc@v2 + + - uses: r-lib/actions/setup-r@v2 + with: + r-version: ${{ matrix.config.r }} + http-user-agent: ${{ matrix.config.http-user-agent }} + use-public-rspm: true + + - uses: r-lib/actions/setup-r-dependencies@v2 + with: + extra-packages: any::rcmdcheck + needs: check + + - uses: r-lib/actions/check-r-package@v2 + with: + upload-snapshots: true + build_args: 'c("--no-manual","--compact-vignettes=gs+qpdf")' diff --git a/README.Rmd b/README.Rmd new file mode 100644 index 0000000..fd276f3 --- /dev/null +++ b/README.Rmd @@ -0,0 +1,46 @@ +--- +output: github_document +--- + + + +```{r, include = FALSE} +knitr::opts_chunk$set( + collapse = TRUE, + comment = "#>", + fig.path = "man/figures/README-", + out.width = "100%" +) +``` + +# overturemapsr + + +[![R-CMD-check](https://github.com/denironyx/overturemapsr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/denironyx/overturemapsr/actions/workflows/R-CMD-check.yaml) + + +The goal of overturemapsr is to ... + +## Installation + +You can install the development version of overturemapsr from [GitHub](https://github.com/) with: + +``` r +# install.packages("devtools") +devtools::install_github("denironyx/overturemapsr") +``` + +## Example + +This is a basic example which shows you how to solve a common problem: + +```{r example} +library(overturemapsr) +## basic example code +``` + + +You'll still need to render `README.Rmd` regularly, to keep `README.md` up-to-date. `devtools::build_readme()` is handy for this. + + +In that case, don't forget to commit and push the resulting figure files, so they display on GitHub and CRAN. diff --git a/README.md b/README.md new file mode 100644 index 0000000..447eb37 --- /dev/null +++ b/README.md @@ -0,0 +1,36 @@ + + + +# overturemapsr + + + +[![R-CMD-check](https://github.com/denironyx/overturemapsr/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/denironyx/overturemapsr/actions/workflows/R-CMD-check.yaml) + + +The goal of overturemapsr is to … + +## Installation + +You can install the development version of overturemapsr from +[GitHub](https://github.com/) with: + +``` r +# install.packages("devtools") +devtools::install_github("denironyx/overturemapsr") +``` + +## Example + +This is a basic example which shows you how to solve a common problem: + +``` r +library(overturemapsr) +## basic example code +``` + +You’ll still need to render `README.Rmd` regularly, to keep `README.md` +up-to-date. `devtools::build_readme()` is handy for this. + +In that case, don’t forget to commit and push the resulting figure +files, so they display on GitHub and CRAN. diff --git a/man/figures/README-pressure-1.png b/man/figures/README-pressure-1.png new file mode 100644 index 0000000000000000000000000000000000000000..c092055f2d496ba61e9f3073c00bd2087bd1a77b GIT binary patch literal 3744 zcmds4cTiL57LOQdLJ$E#L6EY5NQqd0NC_$eYfz-C6cLHUm7<80gc714O@g|FA|@(} zC`fS;5DmQ-6G0FOgqnb1Nq|6rfaG1=owqx)Z|3dW_s5%gcg~&jednBe?sw1c{Jw8) zg8eCLN%39cAP`8>*5O_AS4X9@HFH%9}uyJo{3CzC)tm=#HaZ9JLhciPdH(6D0PI!MOnR~l;_c^~o z&cnD(?fPmYO=IBuZF7@y#|F70E{r$Y^0p;+jJh6J%uo;q>a^*{Bh9QRS}gB+Y2YCu zju-Xpk^DZaEcLg!)TKoo?;~TBgk7vf$sV~~>eMw9k&JO#0(o3` zYeQRucf9TU(a5<|_|vFFl}E0B6p1l}>VU@w*eQm+waFGpFF-4W9jG&E{`5)G(8cR% z6-i~`o=vH`P#M6l$R**Kp^&PPn`wt@3YND3&J}l!OeTRDAdljj#P)3sGiF*!tH|5p zPmu7<=S_3NRV-5o--8ov*M`TWa2-m*L;BrJ6>TE2UTAGIgG+LY2?fg4e|`aXgBraa5X-|TYxlAzyqtMZPcGOLQ~-#(Ui=T>ZV|@ zm9{cg+0)$oQ^ALDDtj0g1QA!Pq2QQSF;BUq8c$nkZOyr@3-*m|rrJA3xI1cK0Ubw@ zW(!U=PKKmSJmNhY@*^TXswW#0MSPzqW1&EooMBqVYq2~o(*x9;fiXa{2gY0y5QMk+ zrX-k_s(Rg~ew8z0^jl=1yL`@=#V1_FH8rX=gBHF;Pfj2kU2V0bpT@K^0vC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