Skip to content

Commit

Permalink
0.7.8
Browse files Browse the repository at this point in the history
- Late reflection of .check_package refactoring
- Logo file replaced
- Test coverage YAML is set to upload artifacts with covr::report() output
- README rebuilt
  • Loading branch information
sigmafelix committed Aug 9, 2024
1 parent 774e706 commit 8520688
Show file tree
Hide file tree
Showing 14 changed files with 249 additions and 245 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-coverage-local.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ jobs:
- name: Test coverage
run: |
Rscript -e "covpack<-covr::package_coverage(install_path='${{ github.workspace }}/cov', clean=FALSE); \
covr::report(covpack, file = file.path('${{ github.workspace }}', 'chopin-coverage-report.html')) \
covd<-covr::coverage_to_list(covpack)$totalcoverage; \
write.table(covd[length(covd)], file = '${{ github.workspace }}/local_cov.Rout', row.names = F, col.names = F)"
shell: bash
Expand Down Expand Up @@ -86,4 +87,4 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: test-outputs
path: ${{ github.workspace }}/cov
path: ${{ github.workspace }}
2 changes: 1 addition & 1 deletion 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.7.7.20240807
Version: 0.7.8.20240809
Authors@R: c(
person("Insang", "Song", , "geoissong@gmail.com", role = c("aut", "cre"),
comment = c(ORCID = "0000-0001-8732-3256")),
Expand Down
4 changes: 1 addition & 3 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,6 @@ DiagrammeR::mermaid(mermaid_chart_vector, width = 1000, height = 600)
```




## Installation

- `chopin` can be installed using `remotes::install_github` (also possible with `pak::pak` or `devtools::install_github`).
Expand All @@ -128,9 +126,9 @@ remotes::install_github("NIEHS/chopin")
```



## Examples
- Examples will navigate `par_grid`, `par_hierarchy`, and `par_multirasters` functions in `chopin` to parallelize geospatial operations.

```{r load-packages}
# check and install packages to run examples
pkgs <- c("chopin", "dplyr", "sf", "terra", "future", "future.mirai", "mirai")
Expand Down
175 changes: 71 additions & 104 deletions README.md

Large diffs are not rendered by default.

88 changes: 50 additions & 38 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"@type": "SoftwareSourceCode",
"identifier": "chopin",
"description": "Geospatial data computation is parallelized by grid, hierarchy, or raster files. Based on future and mirai parallel backends, terra and sf functions as well as convenience functions in the package can be distributed over multiple threads. The simplest way of parallelizing generic geospatial computation is to start from `par_pad_*` functions to `par_grid`, `par_hierarchy`, or `par_multirasters` functions. Virtually any functions accepting classes in terra or sf packages can be used in the three parallelization functions. A common raster-vector overlay operation is provided as a function `extract_at`, which uses exactextractr, with options for kernel weights for summarizing raster values at vector geometries. Other convenience functions for vector-vector operations including simple areal interpolation (`summarize_aw`) and summation of exponentially decaying weights (`summarize_sedc`) are also provided.",
"name": "chopin: Computation of spatial data by hierarchical and objective partitioning of inputs for parallel processing",
"name": "chopin: Computation of Spatial Data by Hierarchical and Objective Partitioning of Inputs for Parallel Processing",
"codeRepository": "https://github.com/NIEHS/chopin",
"issueTracker": "https://github.com/NIEHS/chopin/issues",
"license": "https://spdx.org/licenses/MIT",
"version": "0.7.6.20240710",
"version": "0.7.8.20240809",
"programmingLanguage": {
"@type": "ComputerLanguage",
"name": "R",
Expand Down Expand Up @@ -59,6 +59,30 @@
},
"sameAs": "https://CRAN.R-project.org/package=covr"
},
{
"@type": "SoftwareApplication",
"identifier": "devtools",
"name": "devtools",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=devtools"
},
{
"@type": "SoftwareApplication",
"identifier": "targets",
"name": "targets",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=targets"
},
{
"@type": "SoftwareApplication",
"identifier": "DiagrammeR",
Expand All @@ -73,15 +97,27 @@
},
{
"@type": "SoftwareApplication",
"identifier": "future.batchtools",
"name": "future.batchtools",
"identifier": "future.mirai",
"name": "future.mirai",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=future.mirai"
},
{
"@type": "SoftwareApplication",
"identifier": "mirai",
"name": "mirai",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=future.batchtools"
"sameAs": "https://CRAN.R-project.org/package=mirai"
},
{
"@type": "SoftwareApplication",
Expand Down Expand Up @@ -227,18 +263,6 @@
"sameAs": "https://CRAN.R-project.org/package=future"
},
"7": {
"@type": "SoftwareApplication",
"identifier": "future.mirai",
"name": "future.mirai",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=future.mirai"
},
"8": {
"@type": "SoftwareApplication",
"identifier": "future.apply",
"name": "future.apply",
Expand All @@ -250,7 +274,7 @@
},
"sameAs": "https://CRAN.R-project.org/package=future.apply"
},
"9": {
"8": {
"@type": "SoftwareApplication",
"identifier": "igraph",
"name": "igraph",
Expand All @@ -262,24 +286,12 @@
},
"sameAs": "https://CRAN.R-project.org/package=igraph"
},
"10": {
"9": {
"@type": "SoftwareApplication",
"identifier": "methods",
"name": "methods"
},
"11": {
"@type": "SoftwareApplication",
"identifier": "mirai",
"name": "mirai",
"provider": {
"@id": "https://cran.r-project.org",
"@type": "Organization",
"name": "Comprehensive R Archive Network (CRAN)",
"url": "https://cran.r-project.org"
},
"sameAs": "https://CRAN.R-project.org/package=mirai"
},
"12": {
"10": {
"@type": "SoftwareApplication",
"identifier": "rlang",
"name": "rlang",
Expand All @@ -291,7 +303,7 @@
},
"sameAs": "https://CRAN.R-project.org/package=rlang"
},
"13": {
"11": {
"@type": "SoftwareApplication",
"identifier": "sf",
"name": "sf",
Expand All @@ -304,7 +316,7 @@
},
"sameAs": "https://CRAN.R-project.org/package=sf"
},
"14": {
"12": {
"@type": "SoftwareApplication",
"identifier": "stars",
"name": "stars",
Expand All @@ -317,7 +329,7 @@
},
"sameAs": "https://CRAN.R-project.org/package=stars"
},
"15": {
"13": {
"@type": "SoftwareApplication",
"identifier": "terra",
"name": "terra",
Expand All @@ -330,7 +342,7 @@
},
"sameAs": "https://CRAN.R-project.org/package=terra"
},
"16": {
"14": {
"@type": "SoftwareApplication",
"identifier": "collapse",
"name": "collapse",
Expand All @@ -342,7 +354,7 @@
},
"sameAs": "https://CRAN.R-project.org/package=collapse"
},
"17": {
"15": {
"@type": "SoftwareApplication",
"identifier": "lifecycle",
"name": "lifecycle",
Expand All @@ -356,7 +368,7 @@
},
"SystemRequirements": "NetCDF4"
},
"fileSize": "27866.818KB",
"fileSize": "27931.947KB",
"releaseNotes": "https://github.com/NIEHS/chopin/blob/master/NEWS.md",
"readme": "https://github.com/NIEHS/chopin/blob/main/README.md",
"contIntegration": ["https://github.com/NIEHS/chopin/actions", "https://github.com/NIEHS/chopin/actions/workflows/check-standard.yaml"],
Expand Down
Binary file modified man/figures/README-compare-compregions-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-load-srtm-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-map-all-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-plot results-1.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified man/figures/README-plot results-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file removed man/figures/chopin-logo.jpg
Binary file not shown.
Binary file added man/figures/chopin-logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 0 additions & 97 deletions man/figures/chopin-logo.svg

This file was deleted.

Loading

0 comments on commit 8520688

Please sign in to comment.