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

> base::assign(".ptime", proc.time(), pos = "CheckExEnv")
> ### Name: ipu2
> ### Title: Iterative Proportional Updating
> ### Aliases: ipu2
> 
> ### ** Examples
> 
> library(data.table)
> data(eusilcS)
> setDT(eusilcS)
> eusilcS <- eusilcS[, list(db030,hsize,db040,age,rb090,netIncome,db090,rb050)]
> 
> ## rename columns
> setnames(eusilcS, "rb090", "gender")
> setnames(eusilcS, "db040", "state")
> setnames(eusilcS, "db030", "household")
> setnames(eusilcS, "rb050", "weight")
> 
> ## some recoding
> # generate age groups
> eusilcS[, agegroup := cut(age, c(-Inf, 10*1:9, Inf), right = FALSE)]
> # some recoding of netIncome for reasons of simplicity
> eusilcS[is.na(netIncome), netIncome := 0] 
> eusilcS[netIncome < 0, netIncome := 0] 
> # set hsize to 1,...,5+
> eusilcS[, hsize := cut(hsize, c(0:4, Inf), labels = c(1:4, "5+"))]
> # treat households as a factor variable
> eusilcS[, household := as.factor(household)]
> 
> ## example for base weights assuming a simple random sample of households stratified per region
> eusilcS[, regSamp := .N, by = state]
> eusilcS[, regPop := sum(weight), by = state]
> eusilcS[, baseWeight := regPop/regSamp]
> 
> ## constraints on person level
> # age 
> conP1 <- xtabs(weight ~ agegroup, data = eusilcS)
> # gender by region
> conP2 <- xtabs(weight ~ gender + state, data = eusilcS)
> # personal net income by gender
> conP3 <- xtabs(weight*netIncome ~ gender, data = eusilcS)
> 
> ## constraints on household level
> conH1 <- xtabs(weight ~ hsize + state, data = eusilcS, subset = !duplicated(household))
> 
> # array of convergence limits for conH1
> epsH1 <- conH1
> epsH1[1:4,] <- 0.005
> epsH1["5+",] <- 0.2
> 
> # without array epsH1
> calibweights1 <- ipu2(eusilcS, hid = "household", 
+                       conP = list(conP1, conP2, netIncome = conP3), 
+                       conH = list(conH1), 
+                       epsP = list(1e-06, 1e-06, 1e-03),
+                       epsH = 0.01,  
+                       bound = NULL, verbose = TRUE,  maxIter = 200)
Warning: the functionality of ipu2 moved to the package surveysd in the function ipf
Error in ipu2(eusilcS, hid = "household", conP = list(conP1, conP2, netIncome = conP3),  : 
  the functionality of ipu2 moved to surveysd::ipf and the package surveysd is not available
Execution halted