Skip to content

Commit

Permalink
Merge branch 'main' into select-block
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Sep 26, 2023
2 parents 2718e6c + 9ffeeca commit ae42b4f
Show file tree
Hide file tree
Showing 23 changed files with 787 additions and 255 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
^LICENSE\.md$
^README\.(Rmd|html)$
^\.github$
1 change: 1 addition & 0 deletions .github/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html
47 changes: 47 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
on:
push:
branches: main
pull_request:
branches: main

name: check

jobs:
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@v3

- 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
49 changes: 49 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
on:
push:
branches: main
pull_request:
branches: main

name: coverage

jobs:
coverage:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::covr
needs: coverage

- name: Test coverage
run: |
covr::codecov(
quiet = FALSE,
clean = FALSE,
install_path = file.path(Sys.getenv("RUNNER_TEMP"), "package")
)
shell: Rscript {0}

- name: Show testthat output
if: always()
run: |
## --------------------------------------------------------------------
find ${{ runner.temp }}/package -name 'testthat.Rout*' -exec cat '{}' \; || true
shell: bash

- name: Upload test results
if: failure()
uses: actions/upload-artifact@v3
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
30 changes: 30 additions & 0 deletions .github/workflows/lint.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on:
push:
branches: main
pull_request:
branches: main

name: lint

jobs:
lint:
runs-on: ubuntu-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::lintr, local::.
needs: lint

- name: Lint
run: lintr::lint_package()
shell: Rscript {0}
env:
LINTR_ERROR_ON_LINT: true
46 changes: 46 additions & 0 deletions .github/workflows/pkgdown.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
on:
push:
branches: main
pull_request:
branches: main
release:
types: [published]
workflow_dispatch:

name: pkgdown

jobs:
pkgdown:
runs-on: ubuntu-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.event_name != 'pull_request' || github.run_id }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3

- uses: r-lib/actions/setup-pandoc@v2

- uses: r-lib/actions/setup-r@v2
with:
use-public-rspm: true

- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, local::.
needs: website

- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}

- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs
32 changes: 30 additions & 2 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,44 +5,72 @@ S3method(evalute_block,data_block)
S3method(evalute_block,plot_block)
S3method(evalute_block,transform_block)
S3method(generate_code,block)
S3method(generate_code,transform_block)
S3method(generate_server,block)
S3method(generate_server,data_block)
S3method(generate_server,stack)
S3method(generate_server,transform_block)
S3method(generate_ui,block)
S3method(generate_ui,stack)
S3method(initialize_block,block)
S3method(initialize_block,data_block)
S3method(initialize_block,transform_block)
S3method(initialize_field,field)
S3method(is_initialized,block)
S3method(is_initialized,field)
S3method(server_code,block)
S3method(server_output,block)
S3method(ui_code,block)
S3method(ui_input,field)
S3method(ui_input,select_field)
S3method(ui_input,string_field)
S3method(ui_output,block)
S3method(ui_output,plot_block)
S3method(ui_update,field)
S3method(ui_update,select_field)
S3method(ui_update,string_field)
S3method(update_field,field)
S3method(update_fields,block)
S3method(update_fields,filter_block)
S3method(update_fields,data_block)
S3method(update_fields,transform_block)
S3method(validate_field,field)
S3method(validate_field,select_field)
S3method(validate_field,string_field)
export("%>%")
export("value<-")
export(data_block)
export(evalute_block)
export(filter_block)
export(generate_code)
export(generate_server)
export(generate_ui)
export(initialize_block)
export(initialize_field)
export(is_block)
export(is_field)
export(is_initialized)
export(new_block)
export(new_data_block)
export(new_field)
export(new_filter_block)
export(new_plot_block)
export(new_select_block)
export(new_select_field)
export(new_stack)
export(new_string_field)
export(select_field)
export(serve_stack)
export(set_field_values_from_input)
export(server_code)
export(server_output)
export(string_field)
export(ui_code)
export(ui_input)
export(ui_output)
export(ui_update)
export(update_field)
export(update_fields)
export(validate_field)
export(value)
export(values)
import(ggplot2)
importFrom(magrittr,"%>%")
Loading

0 comments on commit ae42b4f

Please sign in to comment.