Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dry-run of CRAN release #251

Merged
merged 6 commits into from
Jun 10, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions .github/workflows/R-CMD-check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,11 @@ jobs:
config:
- {os: macOS-latest, r: 'release'}
- {os: windows-latest, r: 'release'}
- {os: windows-latest, r: '3.6'}
- {os: ubuntu-18.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.0.0 (ubuntu-18.04) R (4.0.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
- {os: windows-latest, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/latest"}
- {os: ubuntu-18.04, r: 'devel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest", http-user-agent: "R/4.1.0 (ubuntu-18.04) R (4.1.0 x86_64-pc-linux-gnu x86_64 linux-gnu) on GitHub Actions" }
- {os: ubuntu-18.04, r: 'release', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: 'oldrel', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.6', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.5', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}
- {os: ubuntu-18.04, r: '3.4', rspm: "https://packagemanager.rstudio.com/cran/__linux__/bionic/latest"}

Expand Down Expand Up @@ -60,7 +61,7 @@ jobs:
uses: actions/cache@v2
with:
path: |
${{ env.R_LIBS_USER }}
${{ env.R_LIBS_USER }}/*
!${{ env.R_LIBS_USER }}/pak
key: ${{ matrix.config.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-${{ hashFiles('.github/r-depends.rds') }}
restore-keys: ${{ matrix.config.os }}-${{ steps.install-r.outputs.installed-r-version }}-1-
Expand Down Expand Up @@ -104,3 +105,8 @@ jobs:
with:
name: ${{ matrix.config.os }}-r${{ matrix.config.r }}-results
path: check

- name: Don't use tar from old Rtools to store the cache
if: ${{ runner.os == 'Windows' && startsWith(steps.install-r.outputs.installed-r-version, '3.6' ) }}
shell: bash
run: echo "C:/Program Files/Git/usr/bin" >> $GITHUB_PATH
13 changes: 0 additions & 13 deletions R/colours.R

This file was deleted.

6 changes: 3 additions & 3 deletions R/plot_techmixX.R
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
#' * The column `metric` must have a portfolio (e.g. "projected"), a benchmark
#' (e.g. "corporate_economy"), and a single `scenario` (e.g. "target_sds").
#'
#' @return A "ggplot".
#' @export
#'
#' @family functions with minimal arguments
#' @seealso [market_share].
#'
#' @return An object of class "ggplot".
#'
#' @export
#' @examples
#' library(dplyr, warn.conflicts = FALSE)
#'
Expand Down
2 changes: 2 additions & 0 deletions R/plot_techmixY.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
#'
#' @family plotting functions
#'
#' @return An object of class "ggplot".
#'
#' @export
#' @examples
#' data <- prep_techmixY(
Expand Down
6 changes: 3 additions & 3 deletions R/plot_timelineX.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
#' @inheritParams prep_timelineY
#' @inheritParams plot_timelineY
#'
#' @return A "ggplot".
#' @export
#'
#' @family functions with minimal arguments
#' @seealso [sda].
#'
#' @return An object of class "ggplot".
#'
#' @export
#' @examples
#' library(dplyr, warn.conflicts = FALSE)
#'
Expand Down
1 change: 1 addition & 0 deletions R/plot_timelineY.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
#' allows custom recoding via a data frame passed to the argument `specs`.
#'
#' @seealso [sda], [timeline_specs].
#'
#' @return An object of class "ggplot".
#'
#' @export
Expand Down
6 changes: 3 additions & 3 deletions R/plot_trajectoryX.R
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,12 @@
#' @inheritParams prep_trajectoryY
#' @inheritParams prep_timelineY
#'
#' @return A "ggplot".
#' @export
#'
#' @family functions with minimal arguments
#' @seealso [market_share].
#'
#' @return An object of class "ggplot".
#'
#' @export
#' @examples
#' library(dplyr, warn.conflicts = FALSE)
#'
Expand Down
2 changes: 2 additions & 0 deletions R/plot_trajectoryY.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
#'
#' @family plotting functions
#'
#' @return An object of class "ggplot".
#'
#' @export
#' @examples
#' data <- prep_trajectoryY(
Expand Down
2 changes: 2 additions & 0 deletions R/prep_techmixY.R
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@
#' @param scenario_filter String of length 1. Scenario to pick from the `data`.
#' @inheritParams prep_timelineY
#'
#' @return An object of class "ggplot".
#'
#' @export
#' @examples
#' prep_techmixY(
Expand Down
2 changes: 1 addition & 1 deletion R/prep_timelineY.R
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
#' @seealso [sda].
#'
#' @return Data frame with columns: year, line_name, value, extrapolated.
#' @export
#'
#' @export
#' @examples
#' library(dplyr, warn.conflicts = FALSE)
#'
Expand Down
32 changes: 32 additions & 0 deletions R/r2dii_colours.R
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
#' Colour datasets
#'
#' All datasets have at least two columns:
#' * `label`: Text label of the colour.
#' * `hex`: Hex code of the colour.
#'
#' In `scenario_colours`, colours are ordered from red to green to be used in
#' trajectory charts.
#'
#' @name r2dii_colours
#' @keywords internal
#'
#' @examples
#' r2dii.plot:::palette_colours
#'
#' r2dii.plot:::scenario_colours
#'
#' r2dii.plot:::sector_colours
#'
#' r2dii.plot:::technology_colours
#'
NULL

#' @rdname r2dii_colours
"palette_colours"
#' @rdname r2dii_colours
"scenario_colours"
#' @rdname r2dii_colours
"sector_colours"
#' @rdname r2dii_colours
"technology_colours"

1 change: 1 addition & 0 deletions R/theme_2dii.R
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
#' @family plotting functions
#'
#' @return An object of class `r toString(class(theme_2dii()))`.
#'
#' @export
#' @examples
#' library(ggplot2, warn.conflicts = FALSE)
Expand Down
2 changes: 2 additions & 0 deletions R/timeline_specs.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
#' @inheritParams plot_timelineY
#'
#' @seealso plot_timelineA
#'
#' @return A data frame useful as the `specs` argument of [plot_timelineY()].
#'
#' @export
#' @examples
#' data <- prep_timelineY(sda, sector_filter = "cement")
Expand Down
1 change: 0 additions & 1 deletion README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ knitr::opts_chunk$set(
experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://lifecycle.r-lib.org/articles/stages.html)
[![Codecov test coverage](https://codecov.io/gh/2DegreesInvesting/r2dii.plot/branch/master/graph/badge.svg)](https://codecov.io/gh/2DegreesInvesting/r2dii.plot?branch=master)
[![R-CMD-check](https://github.com/2DegreesInvesting/r2dii.plot/workflows/R-CMD-check/badge.svg)](https://github.com/2DegreesInvesting/r2dii.plot/actions)
[![CRAN status](https://www.r-pkg.org/badges/version/r2dii.plot)](https://CRAN.R-project.org/package=r2dii.plot)
<!-- badges: end -->

```{r echo=FALSE}
Expand Down
2 changes: 0 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@ experimental](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](h
[![Codecov test
coverage](https://codecov.io/gh/2DegreesInvesting/r2dii.plot/branch/master/graph/badge.svg)](https://codecov.io/gh/2DegreesInvesting/r2dii.plot?branch=master)
[![R-CMD-check](https://github.com/2DegreesInvesting/r2dii.plot/workflows/R-CMD-check/badge.svg)](https://github.com/2DegreesInvesting/r2dii.plot/actions)
[![CRAN
status](https://www.r-pkg.org/badges/version/r2dii.plot)](https://CRAN.R-project.org/package=r2dii.plot)
<!-- badges: end -->

The goal of r2dii.plot is to help you plot 2DII data in an informative,
Expand Down
4 changes: 2 additions & 2 deletions cran-comments.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Test environments

* ubuntu 18.04 (local), R 4.0.3
* ubuntu 16.04 (github actions), R-oldrel, R-release, R-devel
* ubuntu 18.04 (local), R 4.1.0
* ubuntu 18.04 (github actions), R-oldrel, R-release, R-devel
* macOS-latest (github actions), R-release
* windows-latest (github actions), R-oldrel, R-release
* win-builder, R-release, R-devel
Expand Down
File renamed without changes.
27 changes: 0 additions & 27 deletions man/palette_colours.Rd

This file was deleted.

2 changes: 1 addition & 1 deletion man/plot_techmixX.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/plot_techmixY.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plot_timelineX.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/plot_trajectoryX.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/plot_trajectoryY.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions man/prep_techmixY.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

51 changes: 51 additions & 0 deletions man/r2dii_colours.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.