From 372f699cb6e8fb679f7259a49e24932b71973115 Mon Sep 17 00:00:00 2001 From: mhesselbarth Date: Tue, 11 Feb 2025 08:54:07 +0100 Subject: [PATCH] Adding skip ci --- .github/workflows/R-CMD-check.yaml | 4 ++-- .github/workflows/Test-coverage.yaml | 1 + README.Rmd | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/R-CMD-check.yaml b/.github/workflows/R-CMD-check.yaml index ee53424f..f139b45a 100644 --- a/.github/workflows/R-CMD-check.yaml +++ b/.github/workflows/R-CMD-check.yaml @@ -3,9 +3,9 @@ on: push: - branches: [main, development] - pull_request: branches: [CRAN, main] + pull_request: + branches: [CRAN] workflow_dispatch: name: r-cmd-check diff --git a/.github/workflows/Test-coverage.yaml b/.github/workflows/Test-coverage.yaml index df97337f..cd2013b1 100644 --- a/.github/workflows/Test-coverage.yaml +++ b/.github/workflows/Test-coverage.yaml @@ -14,6 +14,7 @@ permissions: read-all jobs: test-coverage: + if: "!contains(github.event.commits[0].message, '[skip-ci]')" runs-on: ubuntu-latest env: GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.Rmd b/README.Rmd index 24b0d6a4..91df88b4 100644 --- a/README.Rmd +++ b/README.Rmd @@ -23,6 +23,7 @@ README Last updated: `r Sys.Date()` |----|-------------|------|---------| | [![R-CMD](https://github.com/r-spatialecology/shar/actions/workflows/R-CMD-check.yaml/badge.svg)](https://github.com/r-spatialecology/shar/actions/workflows/R-CMD-check.yaml) | [![Project-status](https://www.repostatus.org/badges/latest/active.svg)](https://www.repostatus.org/#active) | [![CRAN-status](https://www.r-pkg.org/badges/version/shar)](https://cran.r-project.org/package=shar) | [![DOI](https://img.shields.io/badge/JOSS-10.21105/joss.03811-yellow.svg)](https://doi.org/10.21105/joss.03811) | [![Codecov](https://codecov.io/gh/r-spatialecology/shar/graph/badge.svg)](https://app.codecov.io/gh/r-spatialecology/shar) | [![Lifecycle](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://www.tidyverse.org/lifecycle/#stable) | [![CRAN-logs](https://cranlogs.r-pkg.org/badges/grand-total/shar)](http://cran.rstudio.com/web/packages/shar/index.html) | [![License](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0) | + **S**pecies-**h**abitat **a**ssociations in **R** provides a toolset of functions in the `R` programming language to analyze species-habitat associations. Therefore, information about the location of the species (as a point pattern) and the environmental conditions (as a raster) is needed. In order to analyse the data for significant habitat associations either the location data or the environmental data is randomized *n*-times. Then, counts within the habitats are compared between the observed and the randomized data. Positive or negative associations are present if the observed counts are higher or lower than the randomized counts (using quantile thresholds). Methods are described in Plotkin et al. (2000), Harms et al. (2001) and Wiegand & Moloney (2014). **shar** is mainly based on the [`spatstat`](http://spatstat.org) (Baddeley et al. 2015) and [`terra`](https://rspatial.org/terra/) (Hijmans 2022) package.