Running ‘test_asis.R’ [4s/6s]
  Running ‘test_basics.R’ [3s/6s]
  Running ‘test_bayesqgcomp.R’ [4s/5s]
  Running ‘test_boot_ints.R’ [4s/7s]
  Running ‘test_bootchooser.R’ [6s/10s]
  Running ‘test_factor.R’ [3s/5s]
  Running ‘test_id.R’ [3s/6s]
  Running ‘test_mice.R’ [3s/5s]
  Running ‘test_numeric.R’ [6s/10s]
  Running ‘test_poisson.R’ [3s/4s]
  Running ‘test_splits.R’ [3s/4s]
  Running ‘test_weights.R’ [3s/4s]
Running the tests in ‘tests/test_id.R’ failed.
Complete output:
  > cat("# testing use of 'id' to get appropriate standard errors \n")
  # testing use of 'id' to get appropriate standard errors 
  > library("qgcomp")
  > #install.packages('sandwich', repos="https://cran.rstudio.com/", dependencies = c("Depends"))
  > 2#library("sandwich")
  [1] 2
  > set.seed(2123)
  > N = 250
  > t = 4
  > dat <- data.frame(row.names = 1:(N*t))
  > dat <- within(dat, {
  +   id = do.call("c", lapply(1:N, function(x) rep(x, t)))
  +   u =  do.call("c", lapply(1:N, function(x) rep(runif(1), t)))
  +   x1 = rnorm(N, u)
  +   x2 = rnorm(N, u)
  +   y = rnorm(N) + u + x1 - x2*x1
  + })
  Error in `[<-.data.frame`(`*tmp*`, nl, value = list(y = c(0.784880684683041,  : 
    object 'nl' not found
  Calls: within -> within.data.frame -> [<- -> [<-.data.frame
  Execution halted
Running the tests in ‘tests/test_poisson.R’ failed.
Complete output:
  > cat("# poisson test\n")
  # poisson test
  > library("qgcomp")
  > 
  > # grouped survival data
  > N = 250
  > t = 4
  > dat <- data.frame(row.names = 1:(N*t))
  > dat <- within(dat, {
  +   group = do.call("c", lapply(1:N, function(x) rep(x, t)))
  +   age = do.call("c", lapply(1:N, function(x) 1:t))
  +   u =  do.call("c", lapply(1:N, function(x) rep(runif(1), t)))
  +   x1 = rnorm(N, u)
  +   x2 = do.call("c", lapply(1:N, function(x) rep(sample(0:3,1), t)))
  +   time = runif(N*t, 20, 200)
  +   logtime = log(time)
  +   lograte = -5 + x1
  +   deaths = rpois(N, exp(log(time) + lograte)) 
  + })
  Error in `[<-.data.frame`(`*tmp*`, nl, value = list(deaths = c(0L, 2L,  : 
    object 'nl' not found
  Calls: within -> within.data.frame -> [<- -> [<-.data.frame
  Execution halted