Skip to content

Commit

Permalink
Merge pull request #106 from ropensci/0.9.0
Browse files Browse the repository at this point in the history
0.9.0
  • Loading branch information
sigmafelix authored Nov 3, 2024
2 parents 77b5c65 + 5c2e661 commit 0a90dba
Show file tree
Hide file tree
Showing 34 changed files with 2,234 additions and 117 deletions.
61 changes: 61 additions & 0 deletions .github/workflows/test-coverage.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# 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: test-coverage

permissions: read-all

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

steps:
- uses: actions/checkout@v4

- 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: |
cov <- covr::package_coverage(
quiet = FALSE,
clean = FALSE,
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package")
)
covr::to_cobertura(cov)
shell: Rscript {0}

- uses: codecov/codecov-action@v4
with:
fail_ci_if_error: ${{ github.event_name != 'pull_request' && true || false }}
file: ./cobertura.xml
plugin: noop
disable_search: true
token: ${{ secrets.CODECOV_TOKEN }}

- 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@v4
with:
name: coverage-test-failures
path: ${{ runner.temp }}/package
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Package: chopin
Title: Computation of Spatial Data by Hierarchical and Objective Partitioning of Inputs for Parallel Processing
Version: 0.8.3
Version: 0.9.0
Authors@R: c(
person("Insang", "Song", , "[email protected]", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-8732-3256")),
Expand Down Expand Up @@ -48,6 +48,7 @@ Imports:
sf (>= 1.0-10),
stars (>= 0.6-0),
terra (>= 1.7-18),
mirai (>= 1.3.0),
collapse,
lifecycle
Suggests:
Expand All @@ -56,7 +57,6 @@ Suggests:
targets,
DiagrammeR,
future.mirai,
mirai,
knitr,
rmarkdown,
spatstat.random,
Expand Down
4 changes: 4 additions & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,12 @@ export(extract_at)
export(kernelfunction)
export(par_convert_f)
export(par_grid)
export(par_grid_mirai)
export(par_hierarchy)
export(par_hierarchy_mirai)
export(par_merge_grid)
export(par_multirasters)
export(par_multirasters_mirai)
export(par_pad_balanced)
export(par_pad_grid)
export(par_split_list)
Expand Down Expand Up @@ -39,6 +42,7 @@ importFrom(igraph,mst)
importFrom(lifecycle,deprecated)
importFrom(methods,findFunction)
importFrom(methods,getPackageName)
importFrom(mirai,mirai_map)
importFrom(rlang,"!!!")
importFrom(rlang,inject)
importFrom(rlang,sym)
Expand Down
4 changes: 4 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 0.9
- `mirai` based `par_*` functions for parallelization
- terra::extract mode in `extract_at()` with `terra` argument and auxiliary arguments including exact, weights, touches

# 0.8
- Bumped version from 0.7.8 to 0.8.0: improving package coverage
- README.md: two mermaid plots are pre-generated as png files
Expand Down
Loading

0 comments on commit 0a90dba

Please sign in to comment.