Running examples in ‘ggdag-Ex.R’ failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ggdag
> ### Title: Quickly plot a DAG in ggplot2
> ### Aliases: ggdag
> 
> ### ** Examples
> 
> 
> dag <- dagify(
+   y ~ x + z2 + w2 + w1,
+   x ~ z1 + w1,
+   z1 ~ w1 + v,
+   z2 ~ w2 + v,
+   w1 ~ ~w2
+ )
> 
> ggdag(dag)
> ggdag(dag) + theme_dag_blank()
> 
> ggdag(dagitty::randomDAG(5, .5))
Error in `dplyr::select()`:
! Can't subset columns that don't exist.
✖ Column `v` doesn't exist.
Backtrace:
     ▆
  1. ├─ggdag::ggdag(dagitty::randomDAG(5, 0.5))
  2. │ ├─if_not_tidy_daggity(.tdy_dag, ...) %>% ...
  3. │ └─ggdag:::if_not_tidy_daggity(.tdy_dag, ...)
  4. │   └─ggdag::tidy_dagitty(.dagitty, ...)
  5. │     └─... %>% ...
  6. ├─ggplot2::ggplot(., ggplot2::aes(x = x, y = y, xend = xend, yend = yend))
  7. ├─igraph::graph_from_data_frame(., vertices = names(.dagitty))
  8. │ └─base::as.data.frame(d)
  9. ├─dplyr::select(., v, w)
 10. ├─dplyr:::select.data.frame(., v, w)
 11. │ └─tidyselect::eval_select(expr(c(...)), data = .data, error_call = error_call)
 12. │   └─tidyselect:::eval_select_impl(...)
 13. │     ├─tidyselect:::with_subscript_errors(...)
 14. │     │ └─rlang::try_fetch(...)
 15. │     │   └─base::withCallingHandlers(...)
 16. │     └─tidyselect:::vars_select_eval(...)
 17. │       └─tidyselect:::walk_data_tree(expr, data_mask, context_mask)
 18. │         └─tidyselect:::eval_c(expr, data_mask, context_mask)
 19. │           └─tidyselect:::reduce_sels(node, data_mask, context_mask, init = init)
 20. │             └─tidyselect:::walk_data_tree(new, data_mask, context_mask)
 21. │               └─tidyselect:::as_indices_sel_impl(...)
 22. │                 └─tidyselect:::as_indices_impl(...)
 23. │                   └─tidyselect:::chr_as_locations(x, vars, call = call, arg = arg)
 24. │                     └─vctrs::vec_as_location(...)
 25. └─vctrs (local) `<fn>`()
 26.   └─vctrs:::stop_subscript_oob(...)
 27.     └─vctrs:::stop_subscript(...)
 28.       └─rlang::abort(...)
Execution halted