tests/testthat/_snaps/shade_p_value.md

shade_p_value throws errors

Code
  gss_viz_sim + shade_p_value("a", "right")
Condition
  Error in `shade_p_value()`:
  ! `obs_stat` must be 'numeric', not 'character'.
Code
  gss_viz_sim + shade_p_value(1, 1)
Condition
  Error in `shade_p_value()`:
  ! `direction` must be 'character', not 'double'.
Code
  gss_viz_sim + shade_p_value(1, "right", color = "x")
Condition
  Error in `shade_p_value()`:
  ! `color` must be 'color string', not 'character'.
Code
  gss_viz_sim + shade_p_value(1, "right", fill = "x")
Condition
  Error in `shade_p_value()`:
  ! `fill` must be 'color string', not 'character'.
Code
  gss_viz_sim %>% shade_p_value(1, "right")
Condition
  Error in `shade_p_value()`:
  ! It looks like you piped the result of `visualize()` into `shade_p_value()` (using `%>%`) rather than adding the result of `shade_p_value()` as a layer with `+`.
  i Consider changing `%>%` to `+`.
Code
  gss_viz_sim %>% shade_p_value(obs_stat = 1)
Condition
  Error in `shade_p_value()`:
  ! It looks like you piped the result of `visualize()` into `shade_p_value()` (using `%>%`) rather than adding the result of `shade_p_value()` as a layer with `+`.
  i Consider changing `%>%` to `+`.
Code
  gss_viz_sim %>% shade_p_value(obs_stat = 1, direction = "right")
Condition
  Error in `shade_p_value()`:
  ! It looks like you piped the result of `visualize()` into `shade_p_value()` (using `%>%`) rather than adding the result of `shade_p_value()` as a layer with `+`.
  i Consider changing `%>%` to `+`.
Code
  gss_viz_sim %>% shade_pvalue(1, "right")
Condition
  Error in `shade_pvalue()`:
  ! It looks like you piped the result of `visualize()` into `shade_pvalue()` (using `%>%`) rather than adding the result of `shade_pvalue()` as a layer with `+`.
  i Consider changing `%>%` to `+`.
Code
  gss_viz_sim %>% shade_pvalue(obs_stat = 1)
Condition
  Error in `shade_pvalue()`:
  ! It looks like you piped the result of `visualize()` into `shade_pvalue()` (using `%>%`) rather than adding the result of `shade_pvalue()` as a layer with `+`.
  i Consider changing `%>%` to `+`.
Code
  gss_viz_sim %>% shade_pvalue(obs_stat = 1, direction = "right")
Condition
  Error in `shade_pvalue()`:
  ! It looks like you piped the result of `visualize()` into `shade_pvalue()` (using `%>%`) rather than adding the result of `shade_pvalue()` as a layer with `+`.
  i Consider changing `%>%` to `+`.


tidymodels/infer documentation built on March 28, 2024, 7:02 p.m.