Running examples in 'confoundr-Ex.R' failed
The error most likely occurred in:

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: makehistory.one
> ### Title: Function to create exposure history for a single time varying
> ###   exposure
> ### Aliases: makehistory.one
> 
> ### ** Examples
> 
> # Simulate wide data set for two subjects
> id <- as.numeric(c(1, 2))
> a_0 <- as.numeric(c(0, 1))
> a_1 <- as.numeric(c(1, 1))
> a_2 <- as.numeric(c(1, 0))
> l_0 <- as.numeric(rbinom(2, 1, 0.5))
> l_1 <- as.numeric(rbinom(2, 1, 0.5))
> l_2 <- as.numeric(rbinom(2, 1, 0.5))
> m_0 <- as.numeric(rbinom(2, 1, 0.5))
> m_1 <- as.numeric(rbinom(2, 1, 0.5))
> m_2 <- as.numeric(rbinom(2, 1, 0.5))
> n_0 <- as.numeric(rbinom(2, 1, 0.5))
> n_1 <- as.numeric(rbinom(2, 1, 0.5))
> n_2 <- as.numeric(rbinom(2, 1, 0.5))
> 
> mydata.wide <- data.frame(id, a_0, a_1, a_2,
+                           l_0, l_1, l_2,
+                           m_0, m_1, m_2,
+                           n_0, n_1, n_2)
> 
> # Run the makehistory.one() function
> mydata.history <- makehistory.one(input=mydata.wide,
+                                  id="id",
+                                   times=c(0,1,2),
+                                   exposure="a",
+                                   name.history="h"
+                                   )
Error: 1 components of `...` had unexpected names.

We detected these problematic arguments:
* `from`

Did you misspecify an argument?
Backtrace:
     x
  1. \-confoundr::makehistory.one(...)
  2.   \-`%>%`(...)
  3.     +-base::withVisible(eval(quote(`_fseq`(`_lhs`)), env, env))
  4.     \-base::eval(quote(`_fseq`(`_lhs`)), env, env)
  5.       \-base::eval(quote(`_fseq`(`_lhs`)), env, env)
  6.         \-confoundr:::`_fseq`(`_lhs`)
  7.           \-magrittr::freduce(value, `_function_list`)
  8.             \-function_list[[i]](value)
  9.               \-tidyr::unite(...)
 10.                 \-ellipsis::check_dots_unnamed()
 11.                   \-ellipsis:::stop_dots(...)
Execution halted