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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: plot.SAF_summary
> ### Title: Produce plots of sequential and average PAF
> ### Aliases: plot.SAF_summary
> 
> ### ** Examples
> 
> library(splines)
> library(survival)
> library(parallel)
> options(boot.parallel="snow")
> options(boot.ncpus=2)
> #  Simulated data on occupational and environmental exposure to
> # chronic cough from Eide, 1995
> # First specify the causal graph, in terms of the parents of each node.  Then put into a list
> parent_urban.rural <- c()
> parent_smoking.category <- c("urban.rural")
> parent_occupational.exposure <- c("urban.rural")
> parent_y <- c("urban.rural","smoking.category","occupational.exposure")
> parent_list <- list(parent_urban.rural, parent_smoking.category,
+ parent_occupational.exposure, parent_y)
> # also specify nodes of graph, in order from root to leaves
> node_vec <- c("urban.rural","smoking.category","occupational.exposure", "y")
> model_list=automatic_fit(Hordaland_data,
+ parent_list=parent_list, node_vec=node_vec, prev=.09)
Warning in eval(family$initialize) :
  non-integer #successes in a binomial glm!
Warning in eval(family$initialize) :
  non-integer #successes in a binomial glm!
Warning in eval(family$initialize) :
  non-integer #successes in a binomial glm!
Warning in eval(family$initialize) :
  non-integer #successes in a binomial glm!
> out <- average_paf(data=model_list[[length(model_list)]]$data,
+  model_list=model_list,
+ parent_list=parent_list, node_vec=node_vec, prev=.09, nperm=10,
+ riskfactor_vec = c("urban.rural","occupational.exposure"),ci=FALSE)
> plot(out)
Warning in fortify(data, ...) : Arguments in `...` must be used.
✖ Problematic argument:
• size = point.size
ℹ Did you misspell an argument name?
Error: Can't find method for generic `+(e1, e2)`:
- e1: <ggplot2::element_text>
- e2: <theme>
Execution halted
Examples with CPU (user + system) or elapsed time > 5s
           user system elapsed
plot.PAF_q  4.1  0.164   5.841