Skip to content

Commit 5380b82

Browse files
author
Anatoly Tsyplenkov
committed
ci: add cran-checks workflow
1 parent 1d52515 commit 5380b82

5 files changed

Lines changed: 29 additions & 7 deletions

File tree

.github/workflows/cran-checks.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Check CRAN status
2+
3+
on:
4+
schedule:
5+
# Runs daily at 4:00 PM UTC (9:00 AM PST)
6+
- cron: "0 16 * * *"
7+
# allows for manually running of the check
8+
workflow_dispatch:
9+
10+
jobs:
11+
check_cran_status:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Get CRAN checks
16+
uses: ricochet-rs/cran-checks/check-pkg@main
17+
with:
18+
pkg: landscapetools

README.Rmd

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
output:
33
github_document:
44
html_preview: false
5-
editor_options:
5+
editor_options:
66
chunk_output_type: console
77
---
88

@@ -12,6 +12,8 @@ editor_options:
1212
[![codecov](https://codecov.io/gh/ropensci/landscapetools/branch/develop/graph/badge.svg)](https://codecov.io/gh/ropensci/landscapetools)
1313
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
1414
[![CRAN status](https://www.r-pkg.org/badges/version/landscapetools)](https://cran.r-project.org/package=landscapetools)
15+
[![Check CRAN
16+
status](https://github.com/ropensci/landscapetools/actions/workflows/cran-checks.yaml/badge.svg)](https://github.com/ropensci/landscapetools/actions/workflows/cran-checks.yaml)
1517
[![](http://cranlogs.r-pkg.org/badges/grand-total/landscapetools)](http://cran.rstudio.com/web/packages/landscapetools/index.html)
1618
[![](https://badges.ropensci.org/188_status.svg)](https://github.com/ropensci/onboarding/issues/188)
1719
[![DOI:10.1111/2041-210X.13076](https://zenodo.org/badge/DOI/10.1111/2041-210X.13076.svg)](https://doi.org/10.1111/2041-210X.13076)
@@ -78,7 +80,7 @@ library(landscapetools)
7880
# Classify the landscape into land uses
7981
classified_landscape <- util_classify(fractal_landscape,
8082
n = 3,
81-
level_names = c("Land Use 1",
83+
level_names = c("Land Use 1",
8284
"Land Use 2",
8385
"Land Use 3"))
8486

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33

44
[![R-CMD-check](https://github.com/ropensci/landscapetools/workflows/R-CMD-check/badge.svg)](https://github.com/ropensci/landscapetools/actions)
55
[![codecov](https://codecov.io/gh/ropensci/landscapetools/branch/develop/graph/badge.svg)](https://codecov.io/gh/ropensci/landscapetools)
6-
[![Lifecycle: stable](https://img.shields.io/badge/lifecycle-stable-brightgreen.svg)](https://lifecycle.r-lib.org/articles/stages.html#stable)
6+
[![lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)](https://www.tidyverse.org/lifecycle/#maturing)
77
[![CRAN
88
status](https://www.r-pkg.org/badges/version/landscapetools)](https://cran.r-project.org/package=landscapetools)
9+
[![Check CRAN
10+
status](https://github.com/ropensci/landscapetools/actions/workflows/cran-checks.yaml/badge.svg)](https://github.com/ropensci/landscapetools/actions/workflows/cran-checks.yaml)
911
[![](http://cranlogs.r-pkg.org/badges/grand-total/landscapetools)](http://cran.rstudio.com/web/packages/landscapetools/index.html)
1012
[![](https://badges.ropensci.org/188_status.svg)](https://github.com/ropensci/onboarding/issues/188)
11-
[![DOI:10.1111/2041-210X.13076](https://img.shields.io/badge/DOI-10.1111%2F2041--210X.13076-blue)](https://doi.org/10.1111/2041-210X.13076)
13+
[![DOI:10.1111/2041-210X.13076](https://zenodo.org/badge/DOI/10.1111/2041-210X.13076.svg)](https://doi.org/10.1111/2041-210X.13076)
1214

1315
<!-- badges: end -->
1416

@@ -73,14 +75,14 @@ devtools::install_github("ropensci/landscapetools")
7375
# Classify the landscape into land uses
7476
classified_landscape <- util_classify(fractal_landscape,
7577
n = 3,
76-
level_names = c("Land Use 1",
78+
level_names = c("Land Use 1",
7779
"Land Use 2",
7880
"Land Use 3"))
7981

8082
show_landscape(classified_landscape, discrete = TRUE)
8183
```
8284

83-
<img src="man/figures/README-unnamed-chunk-1-1.png" width="100%" />
85+
<img src="man/figures/README-unnamed-chunk-1-1.png" alt="" width="100%" />
8486

8587
### Merge
8688

@@ -103,7 +105,7 @@ show_landscape(merge_vis)
103105
#> (`geom_raster()`).
104106
```
105107

106-
<img src="man/figures/README-unnamed-chunk-2-1.png" width="100%" />
108+
<img src="man/figures/README-unnamed-chunk-2-1.png" alt="" width="100%" />
107109

108110
## See also
109111

-2.11 KB
Loading
-2.48 KB
Loading

0 commit comments

Comments
 (0)