Skip to content

Commit

Permalink
Prepare for CRAN
Browse files Browse the repository at this point in the history
  • Loading branch information
dieghernan committed Oct 11, 2022
1 parent b8bcb27 commit b18b308
Show file tree
Hide file tree
Showing 15 changed files with 26 additions and 17 deletions.
27 changes: 21 additions & 6 deletions CITATION.cff
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ preferred-citation:
abstract: Extension of the tidyverse for SpatRaster and SpatVector objects of the
terra package. It includes also new geom_ functions that provide a convenient
way of visualizing terra objects with ggplot2.
repository: https://CRAN.R-project.org/package=tidyterra
repository-code: https://github.com/dieghernan/tidyterra
url: https://dieghernan.github.io/tidyterra/
contact:
Expand Down Expand Up @@ -74,6 +73,7 @@ references:
given-names: Gábor
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=cli
version: '>= 3.0.0'
- type: software
title: crayon
Expand All @@ -84,7 +84,7 @@ references:
given-names: Gábor
email: [email protected]
year: '2022'
url: https://github.com/r-lib/crayon#readme
url: https://CRAN.R-project.org/package=crayon
- type: software
title: data.table
abstract: 'data.table: Extension of `data.frame`'
Expand All @@ -97,6 +97,7 @@ references:
given-names: Arun
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=data.table
- type: software
title: dplyr
abstract: 'dplyr: A Grammar of Data Manipulation'
Expand All @@ -115,6 +116,7 @@ references:
given-names: Kirill
orcid: https://orcid.org/0000-0002-1416-3412
year: '2022'
url: https://CRAN.R-project.org/package=dplyr
version: '>= 1.0.0'
- type: software
title: ggplot2
Expand Down Expand Up @@ -149,6 +151,7 @@ references:
given-names: Dewey
orcid: https://orcid.org/0000-0002-9415-4582
year: '2022'
url: https://CRAN.R-project.org/package=ggplot2
version: '>= 3.1.0'
- type: software
title: magrittr
Expand All @@ -162,6 +165,7 @@ references:
given-names: Hadley
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=magrittr
- type: software
title: rlang
abstract: 'rlang: Functions for Base Types and Core R and ''Tidyverse'' Features'
Expand All @@ -174,6 +178,7 @@ references:
given-names: Hadley
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=rlang
- type: software
title: scales
abstract: 'scales: Scale Functions for Visualization'
Expand All @@ -185,6 +190,7 @@ references:
- family-names: Seidel
given-names: Dana
year: '2022'
url: https://CRAN.R-project.org/package=scales
- type: software
title: sf
abstract: 'sf: Simple Features for R'
Expand All @@ -195,6 +201,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0001-8049-7069
year: '2022'
url: https://CRAN.R-project.org/package=sf
version: '>= 1.0.0'
- type: software
title: terra
Expand All @@ -206,7 +213,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0001-5872-2872
year: '2022'
url: https://rspatial.org/terra/
url: https://CRAN.R-project.org/package=terra
version: '>= 1.5-12'
- type: software
title: tibble
Expand All @@ -220,6 +227,7 @@ references:
given-names: Hadley
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=tibble
version: '>= 3.0.0'
- type: software
title: tidyr
Expand All @@ -232,6 +240,7 @@ references:
- family-names: Girlich
given-names: Maximilian
year: '2022'
url: https://CRAN.R-project.org/package=tidyr
version: '>= 1.0.0'
- type: software
title: isoband
Expand All @@ -248,7 +257,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0002-5147-4711
year: '2022'
url: https://wilkelab.org/isoband/
url: https://CRAN.R-project.org/package=isoband
- type: software
title: knitr
abstract: 'knitr: A General-Purpose Package for Dynamic Report Generation in R'
Expand All @@ -259,7 +268,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0003-0645-5666
year: '2022'
url: https://yihui.org/knitr/
url: https://CRAN.R-project.org/package=knitr
- type: software
title: lifecycle
abstract: 'lifecycle: Manage the Life Cycle of your Package Functions'
Expand All @@ -273,6 +282,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0003-4757-117X
year: '2022'
url: https://CRAN.R-project.org/package=lifecycle
- type: software
title: maptiles
abstract: 'maptiles: Download and Display Map Tiles'
Expand All @@ -283,7 +293,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0002-1932-3323
year: '2022'
url: https://github.com/riatelab/maptiles/
url: https://CRAN.R-project.org/package=maptiles
- type: software
title: rmarkdown
abstract: 'rmarkdown: Dynamic Documents for R'
Expand Down Expand Up @@ -322,6 +332,7 @@ references:
email: [email protected]
orcid: https://orcid.org/0000-0003-3925-190X
year: '2022'
url: https://CRAN.R-project.org/package=rmarkdown
- type: software
title: s2
abstract: 's2: Spherical Geometry Operators Using the S2 Geometry Library'
Expand All @@ -339,6 +350,7 @@ references:
given-names: Ege
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=s2
- type: software
title: testthat
abstract: 'testthat: Unit Testing for R'
Expand All @@ -348,6 +360,7 @@ references:
given-names: Hadley
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=testthat
version: '>= 3.0.0'
- type: software
title: tidyverse
Expand All @@ -358,6 +371,7 @@ references:
given-names: Hadley
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=tidyverse
- type: software
title: vdiffr
abstract: 'vdiffr: Visual Regression Testing and Graphical Diffing'
Expand All @@ -380,3 +394,4 @@ references:
given-names: Vaudor
email: [email protected]
year: '2022'
url: https://CRAN.R-project.org/package=vdiffr
2 changes: 1 addition & 1 deletion R/scales_fill_cross_blended.R
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
#' available palettes, ignoring upper vs. lower case. See
#' [cross_blended_hypsometric_tints_db] for more info. Values available are:
#'
#' ```{r, echo=FALSE, results="asis"}
#' ```{r, echo=FALSE, results="asis", message = FALSE, warning = FALSE}
#'
#' suppressPackageStartupMessages(library(dplyr))
#' cross_blended_hypsometric_tints_db %>%
Expand Down
2 changes: 1 addition & 1 deletion R/scales_fill_hypso.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
#' available palettes, ignoring upper vs. lower case. See
#' [hypsometric_tints_db] for more info. Values available are:
#'
#' ```{r, echo=FALSE, results="asis"}
#' ```{r, echo=FALSE, results="asis", message = FALSE, warning = FALSE}
#'
#' suppressPackageStartupMessages(library(dplyr))
#' hypsometric_tints_db %>%
Expand Down
2 changes: 1 addition & 1 deletion R/scales_fill_whitebox.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#' @param palette A valid palette name. The name is matched to the list of
#' available palettes, ignoring upper vs. lower case. Values available are:
#'
#' ```{r, echo=FALSE, results="asis"}
#' ```{r, echo=FALSE, results="asis", message = FALSE, warning = FALSE}
#'
#' suppressPackageStartupMessages(library(dplyr))
#' whitebox_coltab %>%
Expand Down
Binary file modified R/sysdata.rda
Binary file not shown.
6 changes: 0 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,6 @@ install.packages("tidyterra")
You can install the development version of {tidyterra} like so:

``` r

remotes::install_github("dieghernan/tidyterra")
```

Expand Down Expand Up @@ -148,7 +147,6 @@ ggplot() +

``` r


# Create maximum differences

variation <- rastertemp %>%
Expand Down Expand Up @@ -184,7 +182,6 @@ ggplot() +
{ggplot2}

``` r

f_tile <- system.file("extdata/cyl_tile.tif", package = "tidyterra")

rgb_tile <- rast(f_tile)
Expand All @@ -199,7 +196,6 @@ ggplot() +
<img src="https://raw.githubusercontent.com/dieghernan/tidyterra/main/img/README-example-tile-1.png" width="100%" />

``` r

# Recognizes coord_sf()

ggplot() +
Expand All @@ -216,7 +212,6 @@ ggplot() +
{ggplot2}:

``` r

asia <- rast(system.file("extdata/asia.tif", package = "tidyterra"))

terra::plot(asia)
Expand All @@ -225,7 +220,6 @@ terra::plot(asia)
<img src="https://raw.githubusercontent.com/dieghernan/tidyterra/main/img/README-hypso-1.png" width="100%" />

``` r

ggplot() +
geom_spatraster(data = asia) +
scale_fill_hypso_tint_c(
Expand Down
4 changes: 2 additions & 2 deletions codemeta.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"name": "R",
"url": "https://r-project.org"
},
"runtimePlatform": "R version 4.2.1 (2022-06-23)",
"runtimePlatform": "R version 4.2.1 (2022-06-23 ucrt)",
"author": [
{
"@type": "Person",
Expand Down Expand Up @@ -325,7 +325,7 @@
},
"SystemRequirements": null
},
"fileSize": "2868.418KB",
"fileSize": "2883.917KB",
"citation": [
{
"@type": "SoftwareSourceCode",
Expand Down
Binary file modified data/cross_blended_hypsometric_tints_db.rda
Binary file not shown.
Binary file modified data/hypsometric_tints_db.rda
Binary file not shown.
Binary file modified img/README-example-temp-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 img/README-example-temp-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 modified img/README-example-tile-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 img/README-example-tile-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 modified img/README-hypso-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 img/README-hypso-2.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b18b308

Please sign in to comment.