Tests and Coverage

knitr::opts_chunk$set(
  collapse = TRUE,
  comment = "#>",
  eval = FALSE
)

This output is created by covrpage.

Coverage

Coverage summary is created using the covr package.

| Object | Coverage (%) | |:----------------------------|:------------:| | ggeasy | 96.53 | | R/legend.R | 90.54 | | R/axis.R | 100.00 | | R/labs.R | 100.00 | | R/labs2.R | 100.00 | | R/text.R | 100.00 |


Unit Tests

Unit Test summary is created using the testthat package.

| file | n | time | error | failed | skipped | warning | icon | |:--------------------------------------------------|----:|------:|------:|-------:|--------:|--------:|:-----| | test-labs.R | 10 | 1.896 | 0 | 0 | 4 | 0 | 🔶 | | test-legend.R | 87 | 1.029 | 0 | 0 | 0 | 0 | | | test-remove-axis.R | 20 | 0.349 | 0 | 0 | 0 | 0 | | | test-rotate.R | 23 | 0.289 | 0 | 0 | 0 | 0 | | | test-text.R | 302 | 0.562 | 0 | 0 | 0 | 0 | |

Show Detailed Test Results

| file | context | test | status | n | time | icon | |:-------------------------------------------------------|:---------------------|:----------------------------------------------------------------|:--------|----:|------:|:-----| | test-labs.R | attr labs | easy_labs uses column attrib | SKIPPED | 4 | 0.780 | 🔶 | | test-labs.R | attr labs | regular labs overides easy_labs | SKIPPED | 2 | 0.552 | 🔶 | | test-labs.R | attr labs | regular labs pass new labels through easy_labs | SKIPPED | 2 | 0.306 | 🔶 | | test-labs.R | attr labs | column name used when no column attrib present | SKIPPED | 2 | 0.258 | 🔶 | | test-legend.R | remove legend | easy_remove_legend works with no argument | PASS | 1 | 0.020 | | | test-legend.R | remove legend | easy_remove_legend works with single character argument | PASS | 1 | 0.019 | | | test-legend.R | remove legend | easy_remove_legend works with single bare argument | PASS | 1 | 0.019 | | | test-legend.R | remove legend | easy_remove_legend works with multiple character arguments | PASS | 1 | 0.033 | | | test-legend.R | remove legend | easy_remove_legend works with multiple bare arguments | PASS | 1 | 0.024 | | | test-legend.R | remove legend | easy_remove_legend teach = TRUE works with no other arguments | PASS | 2 | 0.008 | | | test-legend.R | remove legend | easy_remove_legend teach = TRUE works with specific aes | PASS | 2 | 0.007 | | | test-legend.R | remove legend | easy_remove_legend teach = TRUE works with multiple aes | PASS | 2 | 0.007 | | | test-legend.R | move legend | easy_change_legend errors with no argument | PASS | 1 | 0.013 | | | test-legend.R | move legend | easy_change_legend works with combinations | PASS | 4 | 0.133 | | | test-legend.R | move legend | easy_move_legend works with no argument | PASS | 1 | 0.024 | | | test-legend.R | move legend | easy_move_legend works with specified argument | PASS | 3 | 0.071 | | | test-legend.R | move legend | easy_move_legend errors with bad argument | PASS | 1 | 0.011 | | | test-legend.R | move legend | easy_move_legend aliases work | PASS | 3 | 0.075 | | | test-legend.R | move legend | easy_move_legend teach = TRUE works with combinations | PASS | 4 | 0.041 | | | test-legend.R | move legend | easy_legend_at teach = TRUE works with combinations | PASS | 4 | 0.031 | | | test-legend.R | move legend | easy_change_legend teach = TRUE works with position | PASS | 3 | 0.036 | | | test-legend.R | legend direction | easy_rotate_legend works with no argument | PASS | 1 | 0.020 | | | test-legend.R | legend direction | easy_rotate_legend works with combinations | PASS | 4 | 0.076 | | | test-legend.R | legend direction | easy_rotate_legend teach = TRUE works with combinations | PASS | 4 | 0.030 | | | test-legend.R | legend justification | easy_adjust_legend works with no argument | PASS | 1 | 0.019 | | | test-legend.R | legend justification | easy_adjust_legend works with combinations | PASS | 3 | 0.056 | | | test-legend.R | legend justification | easy_adjust_legend errors with bad argument | PASS | 1 | 0.009 | | | test-legend.R | legend justification | easy_adjust_legend teach = TRUE works with justification | PASS | 3 | 0.038 | | | test-legend.R | legend justification | easy_change_legend teach = TRUE works with justification | PASS | 3 | 0.028 | | | test-legend.R | legend justification | easy_rotate_legend teach = TRUE works with combinations | PASS | 4 | 0.031 | | | test-legend.R | legend title | easy_add_legend_title errors with no argument | PASS | 1 | 0.008 | | | test-legend.R | legend title | easy_add_legend_title relabels a single legend title | PASS | 1 | 0.019 | | | test-legend.R | legend title | easy_add_legend_title relabels all legend titles | PASS | 9 | 0.031 | | | test-legend.R | legend title | easy_add_legend_title teach = TRUE works with specific aes | PASS | 4 | 0.030 | | | test-legend.R | legend title | easy_add_legend_title teach = TRUE works with unspecific aes | PASS | 12 | 0.041 | | | test-legend.R | legend title | easy_remove_legend_title works | PASS | 1 | 0.021 | | | test-remove-axis.R | remove axes | no argument | PASS | 3 | 0.080 | | | test-remove-axis.R | remove axes | explicit axis | PASS | 10 | 0.172 | | | test-remove-axis.R | remove axes | multiple components | PASS | 4 | 0.081 | | | test-remove-axis.R | remove axes | teach argument produces working code | PASS | 3 | 0.016 | | | test-rotate.R | rotate labels | rotation of both labels | PASS | 17 | 0.171 | | | test-rotate.R | rotate labels | rotation of x labels | PASS | 3 | 0.064 | | | test-rotate.R | rotate labels | rotation of y labels | PASS | 3 | 0.054 | | | test-text.R | adjust text sizes | set text sizes | PASS | 203 | 0.364 | | | test-text.R | adjust text colors | set text colors | PASS | 98 | 0.175 | | | test-text.R | text alignment | easy_center_title works | PASS | 1 | 0.023 | |

| Failed | Warning | Skipped | |:-------|:--------|:--------| | 🛑 | ⚠️ | 🔶 |

Session Info

| Field | Value | |:---------|:------------------------------| | Version | R version 4.0.3 (2020-10-10) | | Platform | x86_64-pc-linux-gnu (64-bit) | | Running | Pop!_OS 20.10 | | Language | en_AU | | Timezone | Australia/Adelaide |

| Package | Version | |:---------|:--------| | testthat | 3.0.1 | | covr | 3.5.1 | | covrpage | 0.1 |



Try the ggeasy package in your browser

Any scripts or data that you put into this service are public.

ggeasy documentation built on March 31, 2023, 10:34 p.m.