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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: pkonfound
> ### Title: Perform sensitivity analysis for published studies
> ### Aliases: pkonfound
> 
> ### ** Examples
> 
> pkonfound(2, .4, 100, 3)
Percent Bias Necessary to Invalidate the Inference:
To invalidate an inference, 60.3% of the estimate would have to be due to bias. This is based on a threshold of 0.794 for statistical significance (alpha = 0.05).
To invalidate an inference, 60 observations would have to be replaced with cases for which the effect is 0.

Impact Threshold for a Confounding Variable:
An omitted variable would have to be correlated at 0.568 with the outcome and at 0.568 with the predictor of interest (conditioning on observed covariates) to invalidate an inference based on a threshold of 0.201 for statistical significance (alpha = 0.05).
Correspondingly the impact of an omitted variable (as defined in Frank 2000) must be 0.568 X 0.568 = 0.323 to invalidate an inference.
For other forms of output, change `to_return` to table, raw_output, thres_plot, or corr_plot.
For models fit in R, consider use of konfound().
> pkonfound(-2.2, .65, 200, 3)
Percent Bias Necessary to Invalidate the Inference:
To invalidate an inference, 41.732% of the estimate would have to be due to bias. This is based on a threshold of -1.282 for statistical significance (alpha = 0.05).
To invalidate an inference, 83 observations would have to be replaced with cases for which the effect is 0.

Impact Threshold for a Confounding Variable:
An omitted variable would have to be correlated at 0.334 with the outcome and at 0.334 with the predictor of interest (conditioning on observed covariates) to invalidate an inference based on a threshold of -0.14 for statistical significance (alpha = 0.05).
Correspondingly the impact of an omitted variable (as defined in Frank 2000) must be 0.334 X 0.334 = 0.112 to invalidate an inference.
For other forms of output, change `to_return` to table, raw_output, thres_plot, or corr_plot.
For models fit in R, consider use of konfound().
> pkonfound(.5, 3, 200, 3)
Percent Bias Necessary to Invalidate the Inference:
To sustain an inference, 91.549% of the estimate would have to be due to bias. This is based on a threshold of 5.916 for statistical significance (alpha = 0.05).
To sustain an inference, 183 of the cases with 0 effect would have to be replaced with cases at the threshold of inference.

Impact Threshold for a Confounding Variable:
An omitted variable would have to be correlated at 0.335 with the outcome and at 0.335 with the predictor of interest (conditioning on observed covariates) to sustain an inference based on a threshold of 5.916 for statistical significance (alpha = 0.05).
Correspondingly the impact of an omitted variable (as defined in Frank 2000) must be 0.335 X 0.335 = 0.112 to sustain an inference.
For other forms of output, change `to_return` to table, raw_output, thres_plot, or corr_plot.
For models fit in R, consider use of konfound().
> 
> pkonfound(2, .4, 100, 3, to_return = "thresh_plot")
Error in grid.Call.graphics(C_setviewport, vp, TRUE) : 
  VECTOR_ELT() can only be applied to a 'list', not a 'double'
Calls: <Anonymous> ... push.vp.vpTree -> push.vp -> push.vp.viewport -> grid.Call.graphics
Execution halted