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

> ### Name: check_covar_balance
> ### Title: Check Covariate Balance
> ### Aliases: check_covar_balance
> 
> ### ** Examples
> 
> set.seed(422)
> n <- 100
> mydata <- generate_syn_data(sample_size=100)
> year <- sample(x=c("2001","2002","2003","2004","2005"),size = n, replace = TRUE)
> region <- sample(x=c("North", "South", "East", "West"),size = n, replace = TRUE)
> mydata$year <- as.factor(year)
> mydata$region <- as.factor(region)
> mydata$cf5 <- as.factor(mydata$cf5)
> 
> 
> 
> pseudo_pop <- generate_pseudo_pop(mydata$Y,
+                                  mydata$treat,
+                                  mydata[c("cf1","cf2","cf3","cf4","cf5",
+                                           "cf6","year","region")],
+                                  ci_appr = "matching",
+                                  pred_model = "sl",
+                                  gps_model = "non-parametric",
+                                  trim_quantiles = c(0.01,0.99),
+                                  optimized_compile = TRUE,
+                                  sl_lib = c("m_xgboost"),
+                                  covar_bl_method = "absolute",
+                                  covar_bl_trs = 0.1,
+                                  covar_bl_trs_type = "mean",
+                                  max_attempt = 1,
+                                  matching_fun = "matching_l1",
+                                  delta_n = 1,
+                                  scale = 0.5,
+                                  nthread = 1)
2022-12-29 06:53:58 CRANWIN 111880 CausalGPS log_system_info INFO:  System name: Windows, OS type: windows, machine architecture: x86, user: CRAN, R version 4.1.3 (2022-03-10), detected cores: 32
mean absolute correlation: 0.146209278430226| Covariate balance threshold: 0.1
Loading required package: nnls
2022-12-29 06:54:01 CRANWIN 111880 CausalGPS compile_pseudo_pop INFO:  Starting compiling pseudo population  (original data size: 98) ... 
2022-12-29 06:54:01 CRANWIN 111880 CausalGPS FUN WARN:  There is no data to match with  1.93750631526146 in  0.5  radius.
2022-12-29 06:54:01 CRANWIN 111880 CausalGPS FUN WARN:  There is no data to match with  16.9375063152615 in  0.5  radius.
2022-12-29 06:54:01 CRANWIN 111880 CausalGPS FUN WARN:  There is no data to match with  20.9375063152615 in  0.5  radius.
2022-12-29 06:54:01 CRANWIN 111880 CausalGPS FUN WARN:  There is no data to match with  21.9375063152615 in  0.5  radius.
2022-12-29 06:54:01 CRANWIN 111880 CausalGPS FUN WARN:  There is no data to match with  23.9375063152615 in  0.5  radius.
2022-12-29 06:54:01 CRANWIN 111880 CausalGPS compile_pseudo_pop INFO:  Finished compiling pseudo population  (Pseudo population data size: 98)
mean absolute correlation: 0.329695962727922| Covariate balance threshold: 0.1
Error in library.dynam(lib, package, package.lib) : 
  DLL 'purrr' not found: maybe not installed for this architecture?
Calls: generate_pseudo_pop ... namespaceImportFrom -> asNamespace -> loadNamespace -> library.dynam
Execution halted