-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor: use terra raster as input and remove former example dataset
- Loading branch information
Showing
22 changed files
with
494 additions
and
465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,6 @@ | |
^\.travis\.yml$ | ||
^\.github$ | ||
^codecov\.yml$ | ||
^README\.Rmd$ | ||
^CITATION\.cff$ | ||
^codemeta\.json$ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
# 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 | ||
|
||
jobs: | ||
test-coverage: | ||
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::covr | ||
needs: coverage | ||
|
||
- name: Test coverage | ||
run: | | ||
covr::codecov( | ||
quiet = FALSE, | ||
clean = FALSE, | ||
install_path = file.path(normalizePath(Sys.getenv("RUNNER_TEMP"), winslash = "/"), "package") | ||
) | ||
shell: Rscript {0} | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,90 @@ | ||
# ----------------------------------------------------------- | ||
# CITATION file created with {cffr} R package, v0.5.0 | ||
# See also: https://docs.ropensci.org/cffr/ | ||
# ----------------------------------------------------------- | ||
|
||
cff-version: 1.2.0 | ||
message: 'To cite package "linemap" in publications use:' | ||
type: software | ||
license: GPL-3.0-only | ||
title: 'linemap: Line Maps' | ||
version: 0.3.0 | ||
abstract: 'Create maps made of lines. The package contains one function: linemap(). | ||
linemap() displays a map made of lines using a raster or gridded data.' | ||
authors: | ||
- family-names: Giraud | ||
given-names: Timothée | ||
email: [email protected] | ||
orcid: https://orcid.org/0000-0002-1932-3323 | ||
repository: https://CRAN.R-project.org/package=linemap | ||
repository-code: https://github.com/riatelab/linemap | ||
url: https://github.com/riatelab/linemap | ||
contact: | ||
- family-names: Giraud | ||
given-names: Timothée | ||
email: [email protected] | ||
orcid: https://orcid.org/0000-0002-1932-3323 | ||
keywords: | ||
- cp1919 | ||
- map | ||
- r | ||
- spatial | ||
references: | ||
- type: software | ||
title: 'R: A Language and Environment for Statistical Computing' | ||
notes: Depends | ||
url: https://www.R-project.org/ | ||
authors: | ||
- name: R Core Team | ||
location: | ||
name: Vienna, Austria | ||
year: '2023' | ||
institution: | ||
name: R Foundation for Statistical Computing | ||
version: '>= 3.3.0' | ||
- type: software | ||
title: graphics | ||
abstract: 'R: A Language and Environment for Statistical Computing' | ||
notes: Imports | ||
authors: | ||
- name: R Core Team | ||
location: | ||
name: Vienna, Austria | ||
year: '2023' | ||
institution: | ||
name: R Foundation for Statistical Computing | ||
- 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: '2023' | ||
- type: software | ||
title: tinytest | ||
abstract: 'tinytest: Lightweight and Feature Complete Unit Testing Framework' | ||
notes: Suggests | ||
url: https://github.com/markvanderloo/tinytest | ||
repository: https://CRAN.R-project.org/package=tinytest | ||
authors: | ||
- family-names: van der Loo | ||
given-names: Mark | ||
email: [email protected] | ||
orcid: https://orcid.org/0000-0002-9807-4686 | ||
year: '2023' | ||
- type: software | ||
title: covr | ||
abstract: 'covr: Test Coverage for Packages' | ||
notes: Suggests | ||
url: https://covr.r-lib.org | ||
repository: https://CRAN.R-project.org/package=covr | ||
authors: | ||
- family-names: Hester | ||
given-names: Jim | ||
email: [email protected] | ||
year: '2023' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,19 +1,17 @@ | ||
Package: linemap | ||
Type: Package | ||
Title: Line Maps | ||
Version: 0.3.0.0 | ||
Version: 0.3.0 | ||
Authors@R: person("Timothée", "Giraud", email = "[email protected]", | ||
role = c("cre","aut"), comment = c(ORCID = "0000-0002-1932-3323")) | ||
Description: Create maps made of lines. The package contains two functions: | ||
linemap() and getgrid(). linemap() displays a map made of lines using a | ||
data frame of gridded data. getgrid() transforms a set of polygons | ||
(sf objects) into a suitable data frame for linemap(). | ||
Description: Create maps made of lines. The package contains one function: | ||
linemap(). linemap() displays a map made of lines using a | ||
raster or gridded data. | ||
URL: https://github.com/riatelab/linemap | ||
BugReports: https://github.com/riatelab/linemap/issues | ||
Depends: R (>= 3.3.0) | ||
Imports: graphics, sf, stats | ||
Imports: graphics, terra | ||
Suggests: tinytest, covr | ||
License: GPL-3 | ||
Encoding: UTF-8 | ||
LazyData: true | ||
RoxygenNote: 7.1.2 | ||
RoxygenNote: 7.2.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
# Generated by roxygen2: do not edit by hand | ||
|
||
export(getgrid) | ||
export(linemap) | ||
importFrom(graphics,par) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.