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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: addDrug.Lexis
> ### Title: Expand a Lexis object with information of drug exposure based on
> ###   purchase dates and -amounts
> ### Aliases: addDrug.Lexis coarse.Lexis
> ### Keywords: survival manip
> 
> ### ** Examples
> 
> # Follow-up of 2 persons
> clear()
> fu <- data.frame(doe = c(2006, 2008),
+                  dox = c(2015, 2018),
+                  dob = c(1950, 1951),
+                  xst = factor(c("A","D")))
> Lx <- Lexis(entry = list(per = doe,
+                          age = doe- dob),
+              exit = list(per = dox),
+       exit.status = xst,
+              data = fu)
NOTE: entry.status has been set to "A" for all.
> Lx <- subset(Lx, select = -c(doe, dob, dox, xst))
> 
> # split FU in 1 year intervals
> Sx <- splitLexis(Lx, "per", breaks = seq(1990, 2020, 1.0))
> 
> # drug purchases, one data frame for each drug 
> ra <- data.frame(per = c(2007 + runif(12,0,10)),
+                  amt = sample(2:4, 12, r = TRUE),
+               lex.id = sample(1:2, 12, r = TRUE))
> ra <- ra[order(ra$lex.id, ra$per),]
> 
> rb <- data.frame(per = c(2009 + runif(10, 0, 10)),
+                  amt = sample(round(2:4/3,1), 10, r = TRUE),
+               lex.id = sample(1:2, 10, r = TRUE))
> rb <- rb[order(rb$lex.id, rb$per),]
> 
> # put in a named list
> pdat <- list(A = ra, B = rb)
> pdat
$A
        per amt lex.id
12 2008.766   2      1
5  2009.017   3      1
11 2009.060   2      1
1  2009.655   2      1
2  2010.721   2      1
9  2013.291   2      1
4  2016.082   3      1
10 2007.618   4      2
3  2012.729   2      2
8  2013.608   4      2
6  2015.984   3      2
7  2016.447   3      2

$B
        per amt lex.id
8  2014.530 1.0      1
1  2016.942 1.0      1
2  2010.079 0.7      2
4  2013.113 1.0      2
9  2014.297 1.0      2
6  2015.471 0.7      2
3  2016.237 1.3      2
7  2016.829 1.3      2
10 2016.894 1.3      2
5  2017.209 0.7      2

> 
> ex1 <- addDrug.Lexis(Sx, pdat, method = "ext") # default
NOTE: timescale taken as 'per'
NOTE: end of exposure based on differences in purchase times (per)
 and amount purchased (amt).
Error in vectbl_assign(x[[j]], i, recycled_value[[j]]) : 
  DLL requires the use of native symbols
Calls: addDrug.Lexis ... tbl_subassign_row -> withCallingHandlers -> vectbl_assign
Execution halted