Skip to content

Commit

Permalink
Merge pull request #143 from njtierney/update-citation-i142
Browse files Browse the repository at this point in the history
update CITATION.cff and add GH action

Resolves #142
  • Loading branch information
njtierney authored Jan 17, 2025
2 parents 4a2ec81 + eff8f34 commit 71ece03
Show file tree
Hide file tree
Showing 7 changed files with 406 additions and 20 deletions.
58 changes: 58 additions & 0 deletions .github/workflows/update-citation-cff.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Workflow derived from https://github.com/r-lib/actions/tree/master/examples
# The action runs when:
# - A new release is published
# - The DESCRIPTION or inst/CITATION are modified
# - Can be run manually
# For customizing the triggers, visit https://docs.github.com/en/actions/learn-github-actions/events-that-trigger-workflows
on:
release:
types: [published]
push:
branches: [master, main]
paths:
- DESCRIPTION
- inst/CITATION
workflow_dispatch:

name: Update CITATION.cff

jobs:
update-citation-cff:
runs-on: macos-latest
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-r@v2
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: |
any::cffr
any::V8
- name: Update CITATION.cff
run: |
library(cffr)
# Customize with your own code
# See https://docs.ropensci.org/cffr/articles/cffr.html
# Write your own keys
mykeys <- list()
# Create your CITATION.cff file
cff_write(keys = mykeys)
shell: Rscript {0}

- name: Commit results
run: |
git config --local user.name "github-actions[bot]"
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add CITATION.cff
git commit -m 'Update CITATION.cff' || echo "No changes to commit"
git push origin || echo "No changes to commit"
270 changes: 262 additions & 8 deletions CITATION.cff
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# -----------------------------------------------------------
# CITATION file created with {cffr} R package, v0.5.0
# --------------------------------------------
# CITATION file created with {cffr} R package
# See also: https://docs.ropensci.org/cffr/
# -----------------------------------------------------------
# --------------------------------------------

cff-version: 1.2.0
message: 'To cite package "geotargets" in publications use:'
type: software
license: MIT
title: 'geotargets: Targets extensions for geospatial formats'
version: 0.0.0.9000
title: 'geotargets: ''Targets'' Extensions for Geospatial Formats'
version: 0.2.0.9000
abstract: Provides extensions for various geospatial file formats, such as shapefiles
and rasters. See the vignettes for worked examples and demonstrations and explanations
of how to use the various package extensions.
and rasters. Currently provides support for the 'terra' geospatial formats. See
the vignettes for worked examples, demonstrations, and explanations of how to use
the various package extensions.
authors:
- family-names: Tierney
given-names: Nicholas
Expand All @@ -24,7 +25,8 @@ authors:
given-names: Andrew
orcid: https://orcid.org/0000-0002-4565-533X
repository-code: https://github.com/njtierney/geotargets
url: https://njtierney.github.io/geotargets/
url: http://geotargets.njtierney.com
date-released: '2024-11-29'
contact:
- family-names: Tierney
given-names: Nicholas
Expand All @@ -43,3 +45,255 @@ keywords:
- targets
- vector
- workflow
references:
- type: software
title: targets
abstract: 'targets: Dynamic Function-Oriented ''Make''-Like Declarative Pipelines'
notes: Imports
url: https://docs.ropensci.org/targets/
repository: https://CRAN.R-project.org/package=targets
authors:
- family-names: Landau
given-names: William Michael
email: [email protected]
orcid: https://orcid.org/0000-0003-1878-3253
year: '2025'
doi: 10.32614/CRAN.package.targets
version: '>= 1.8.0'
- type: software
title: rlang
abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
notes: Imports
url: https://rlang.r-lib.org
repository: https://CRAN.R-project.org/package=rlang
authors:
- family-names: Henry
given-names: Lionel
email: [email protected]
- family-names: Wickham
given-names: Hadley
email: [email protected]
year: '2025'
doi: 10.32614/CRAN.package.rlang
version: '>= 1.1.3'
- type: software
title: cli
abstract: 'cli: Helpers for Developing Command Line Interfaces'
notes: Imports
url: https://cli.r-lib.org
repository: https://CRAN.R-project.org/package=cli
authors:
- family-names: Csárdi
given-names: Gábor
email: [email protected]
year: '2025'
doi: 10.32614/CRAN.package.cli
version: '>= 3.6.2'
- type: software
title: terra
abstract: 'terra: Spatial Data Analysis'
notes: Imports
url: https://rspatial.org/
repository: https://CRAN.R-project.org/package=terra
authors:
- family-names: Hijmans
given-names: Robert J.
email: [email protected]
orcid: https://orcid.org/0000-0001-5872-2872
year: '2025'
doi: 10.32614/CRAN.package.terra
version: '>= 1.7.71'
- type: software
title: withr
abstract: 'withr: Run Code ''With'' Temporarily Modified Global State'
notes: Imports
url: https://withr.r-lib.org
repository: https://CRAN.R-project.org/package=withr
authors:
- family-names: Hester
given-names: Jim
- family-names: Henry
given-names: Lionel
email: [email protected]
- family-names: Müller
given-names: Kirill
email: [email protected]
- family-names: Ushey
given-names: Kevin
email: [email protected]
- family-names: Wickham
given-names: Hadley
email: [email protected]
- family-names: Chang
given-names: Winston
year: '2025'
doi: 10.32614/CRAN.package.withr
version: '>= 3.0.0'
- type: software
title: zip
abstract: 'zip: Cross-Platform ''zip'' Compression'
notes: Imports
url: https://r-lib.github.io/zip/
repository: https://CRAN.R-project.org/package=zip
authors:
- family-names: Csárdi
given-names: Gábor
email: [email protected]
year: '2025'
doi: 10.32614/CRAN.package.zip
- type: software
title: lifecycle
abstract: 'lifecycle: Manage the Life Cycle of your Package Functions'
notes: Imports
url: https://lifecycle.r-lib.org/
repository: https://CRAN.R-project.org/package=lifecycle
authors:
- family-names: Henry
given-names: Lionel
email: [email protected]
- family-names: Wickham
given-names: Hadley
email: [email protected]
orcid: https://orcid.org/0000-0003-4757-117X
year: '2025'
doi: 10.32614/CRAN.package.lifecycle
- type: software
title: crew
abstract: 'crew: A Distributed Worker Launcher Framework'
notes: Suggests
url: https://wlandau.github.io/crew/
repository: https://CRAN.R-project.org/package=crew
authors:
- family-names: Landau
given-names: William Michael
email: [email protected]
orcid: https://orcid.org/0000-0003-1878-3253
year: '2025'
doi: 10.32614/CRAN.package.crew
version: '>= 0.9.2'
- type: software
title: knitr
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
notes: Suggests
url: https://yihui.org/knitr/
repository: https://CRAN.R-project.org/package=knitr
authors:
- family-names: Xie
given-names: Yihui
email: [email protected]
orcid: https://orcid.org/0000-0003-0645-5666
year: '2025'
doi: 10.32614/CRAN.package.knitr
- type: software
title: ncmeta
abstract: 'ncmeta: Straightforward ''NetCDF'' Metadata'
notes: Suggests
url: https://hypertidy.github.io/ncmeta/
repository: https://CRAN.R-project.org/package=ncmeta
authors:
- family-names: Sumner
given-names: Michael
email: [email protected]
year: '2025'
doi: 10.32614/CRAN.package.ncmeta
- type: software
title: rmarkdown
abstract: 'rmarkdown: Dynamic Documents for R'
notes: Suggests
url: https://pkgs.rstudio.com/rmarkdown/
repository: https://CRAN.R-project.org/package=rmarkdown
authors:
- family-names: Allaire
given-names: JJ
email: [email protected]
- family-names: Xie
given-names: Yihui
email: [email protected]
orcid: https://orcid.org/0000-0003-0645-5666
- family-names: Dervieux
given-names: Christophe
email: [email protected]
orcid: https://orcid.org/0000-0003-4474-2498
- family-names: McPherson
given-names: Jonathan
email: [email protected]
- family-names: Luraschi
given-names: Javier
- family-names: Ushey
given-names: Kevin
email: [email protected]
- family-names: Atkins
given-names: Aron
email: [email protected]
- family-names: Wickham
given-names: Hadley
email: [email protected]
- family-names: Cheng
given-names: Joe
email: [email protected]
- family-names: Chang
given-names: Winston
email: [email protected]
- family-names: Iannone
given-names: Richard
email: [email protected]
orcid: https://orcid.org/0000-0003-3925-190X
year: '2025'
doi: 10.32614/CRAN.package.rmarkdown
- type: software
title: sf
abstract: 'sf: Simple Features for R'
notes: Suggests
url: https://r-spatial.github.io/sf/
repository: https://CRAN.R-project.org/package=sf
authors:
- family-names: Pebesma
given-names: Edzer
email: [email protected]
orcid: https://orcid.org/0000-0001-8049-7069
year: '2025'
doi: 10.32614/CRAN.package.sf
- type: software
title: stars
abstract: 'stars: Spatiotemporal Arrays, Raster and Vector Data Cubes'
notes: Suggests
url: https://r-spatial.github.io/stars/
repository: https://CRAN.R-project.org/package=stars
authors:
- family-names: Pebesma
given-names: Edzer
email: [email protected]
orcid: https://orcid.org/0000-0001-8049-7069
year: '2025'
doi: 10.32614/CRAN.package.stars
- type: software
title: testthat
abstract: 'testthat: Unit Testing for R'
notes: Suggests
url: https://testthat.r-lib.org
repository: https://CRAN.R-project.org/package=testthat
authors:
- family-names: Wickham
given-names: Hadley
email: [email protected]
year: '2025'
doi: 10.32614/CRAN.package.testthat
version: '>= 3.0.0'
- type: software
title: fs
abstract: 'fs: Cross-Platform File System Operations Based on ''libuv'''
notes: Suggests
url: https://fs.r-lib.org
repository: https://CRAN.R-project.org/package=fs
authors:
- family-names: Hester
given-names: Jim
- family-names: Wickham
given-names: Hadley
email: [email protected]
- family-names: Csárdi
given-names: Gábor
email: [email protected]
year: '2025'
doi: 10.32614/CRAN.package.fs

1 change: 1 addition & 0 deletions DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,4 @@ Config/testthat/edition: 3
URL: https://github.com/njtierney/geotargets, http://geotargets.njtierney.com
BugReports: https://github.com/njtierney/geotargets/issues
VignetteBuilder: knitr
date:
10 changes: 10 additions & 0 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,16 @@ knitr::opts_chunk$set(

`geotargets` extends [`targets`](https://github.com/ropensci/targets) to work with geospatial data formats, such as rasters and vectors (e.g., shapefiles). Currently we support raster and vector formats for the [`terra`](https://github.com/rspatial/terra) package

## How to cite geotargets

One example citation of geotargets could be as follows: "R packages used in this analysis included (list R packages used), targets, and geotargets (Tierney, N., Scott, E., & Brown, A, 2024). Here is the full bibliographic reference for your references:

> Tierney N, Scott E, Brown A
(2024). "geotargets: 'Targets'
Extensions for Geospatial
Formats."
<http://geotargets.njtierney.com>.

## Installation

You can install the development version of geotargets like so:
Expand Down
Loading

0 comments on commit 71ece03

Please sign in to comment.