Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
nbenn authored May 29, 2024
0 parents commit a82fc0d
Show file tree
Hide file tree
Showing 86 changed files with 3,061 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
^.*\.Rproj$
^\.Rproj\.user$
^_pkgdown\.yml$
^docs$
^\.github$
^codecov\.yml$
^LICENSE\.md$
^CODE_OF_CONDUCT\.md$
^\.aviator/config\.yml$
43 changes: 43 additions & 0 deletions .aviator/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
merge_rules:
labels:
trigger: mergequeue
skip_line: mergequeue-priority
merge_failed: blocked
skip_delete_branch: ''
update_latest: true
delete_branch: false
use_rebase: true
publish_status_check: ready
status_comment:
publish: always
open_message: ''
queued_message: ''
blocked_message: ''
enable_comments: true
ci_timeout_mins: 0
require_all_checks_pass: true
require_skip_line_reason: false
preconditions:
validations: []
number_of_approvals: 0
required_checks: []
use_github_mergeability: true
conversation_resolution_required: false
merge_mode:
type: default
auto_update:
enabled: true
label: 'mergequeue'
max_runs_for_update: 0
merge_commit:
use_title_and_body: false
merge_strategy:
name: merge
override_labels:
squash: ''
merge: ''
rebase: ''
base_branches:
- main
scenarios: []
version: 1.1.0
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/pkg.lock
37 changes: 37 additions & 0 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
# Contributing to RKazam

This outlines how to propose a change to RKazam.

### Fixing typos

Small typos or grammatical errors in documentation may be edited directly using
the GitHub web interface, so long as the changes are made in the _source_ file.

* YES: you edit a roxygen comment in a `.R` file below `R/`.
* NO: you edit an `.Rd` file below `man/`.

### Prerequisites

Before you make a substantial pull request, you should always file an issue and
make sure someone from the team agrees that it’s a problem. If you’ve found a
bug, create an associated issue and illustrate the bug with a minimal
[reprex](https://www.tidyverse.org/help/#reprex).

### Pull request process

* We recommend that you create a Git branch for each pull request (PR).
* Look at the Travis and AppVeyor build status before and after making changes.
The `README` should contain badges for any continuous integration services used
by the package.
* We use [roxygen2](https://cran.r-project.org/package=roxygen2), with
[Markdown syntax](https://cran.r-project.org/web/packages/roxygen2/vignettes/markdown.html),
for documentation.
* We use [testthat](https://cran.r-project.org/package=testthat). Contributions
with test cases included are easier to accept.
* Please do not update `NEWS.md`.

### Code of Conduct

Please note that the RKazam project is released with a
[Contributor Code of Conduct](CODE_OF_CONDUCT.md). By contributing to this
project you agree to abide by its terms.
13 changes: 13 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Please briefly describe your problem and what output you expect. If you have a question, please don't use this form. Instead, ask on <https://stackoverflow.com/> or <https://community.rstudio.com/>.

Please include a minimal reproducible example (AKA a reprex). If you've never heard of a [reprex](https://reprex.tidyverse.org/) before, start by reading <https://www.tidyverse.org/help/#reprex>.

IMPORTANT: If your code requires accessing a specific database (with e.g. odbc, RSQLite, RJDBC), the issue you are experiencing is likely not a problem with the DBI package. Please file an issue with the appropriate DBI backend instead.

---

Brief description of the problem

```r
# insert reprex here
```
4 changes: 4 additions & 0 deletions .github/security.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# Process for reporting security vulnerabilities

For reporting a security vulnerability, please e-mail the package maintainer at [email protected] for further instructions.
Do not include confidential information in the e-mail.
150 changes: 150 additions & 0 deletions .github/workflows/R-CMD-check-dev.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,150 @@
# This workflow calls the GitHub API very frequently.
# Can't be run as part of commits
on:
schedule:
- cron: "5 0 * * *" # 05:00 UTC every day only run on main branch
push:
branches:
- "cran-*"
tags:
- "v*"

name: rcc dev

jobs:
matrix:
runs-on: ubuntu-22.04
outputs:
matrix: ${{ steps.set-matrix.outputs.matrix }}

name: Collect deps

steps:
- uses: actions/checkout@v4

- uses: ./.github/workflows/rate-limit
with:
token: ${{ secrets.GITHUB_TOKEN }}

- uses: r-lib/actions/setup-r@v2
with:
install-r: false

- id: set-matrix
uses: ./.github/workflows/dep-matrix

check-matrix:
runs-on: ubuntu-22.04
needs: matrix

name: Check deps

steps:
- name: Install json2yaml
run: |
sudo npm install -g json2yaml
- name: Check matrix definition
run: |
matrix='${{ needs.matrix.outputs.matrix }}'
echo $matrix
echo $matrix | jq .
echo $matrix | json2yaml
R-CMD-check-base:
runs-on: ubuntu-22.04

name: base

# Begin custom: services
# End custom: services

strategy:
fail-fast: false

steps:
- uses: actions/checkout@v4

- uses: ./.github/workflows/custom/before-install
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''

- uses: ./.github/workflows/install
with:
install-r: false
cache-version: rcc-dev-base-1
needs: check
extra-packages: "any::rcmdcheck any::remotes ."
token: ${{ secrets.GITHUB_TOKEN }}

- name: Session info
run: |
options(width = 100)
if (!requireNamespace("sessioninfo", quietly = TRUE)) install.packages("sessioninfo")
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- uses: ./.github/workflows/custom/after-install
if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''

- uses: ./.github/workflows/update-snapshots
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository

- uses: ./.github/workflows/check
with:
results: ${{ matrix.package }}

R-CMD-check-dev:
needs:
- matrix
- R-CMD-check-base

runs-on: ubuntu-22.04

name: ${{ matrix.package }}

# Begin custom: services
# End custom: services

strategy:
fail-fast: false
matrix: ${{fromJson(needs.matrix.outputs.matrix)}}

steps:
- uses: actions/checkout@v4

- uses: ./.github/workflows/custom/before-install
if: hashFiles('.github/workflows/custom/before-install/action.yml') != ''

- uses: ./.github/workflows/install
with:
install-r: false
cache-version: rcc-dev-${{ matrix.package }}-1
needs: check
extra-packages: "any::rcmdcheck any::remotes ."
token: ${{ secrets.GITHUB_TOKEN }}

- name: Install dev version of ${{ matrix.package }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
run: |
remotes::install_dev("${{ matrix.package }}", "https://cloud.r-project.org", upgrade = "always")
shell: Rscript {0}

- name: Session info
run: |
options(width = 100)
if (!requireNamespace("sessioninfo", quietly = TRUE)) install.packages("sessioninfo")
pkgs <- installed.packages()[, "Package"]
sessioninfo::session_info(pkgs, include_base = TRUE)
shell: Rscript {0}

- uses: ./.github/workflows/custom/after-install
if: hashFiles('.github/workflows/custom/after-install/action.yml') != ''

- uses: ./.github/workflows/update-snapshots
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name == github.repository

- uses: ./.github/workflows/check
with:
results: ${{ matrix.package }}
Loading

0 comments on commit a82fc0d

Please sign in to comment.