dagR: a suite of R functions for directed acyclic graphs.