I am using wfe version 1.9.1 and found that the current version of the package does not allow the number of strata to be less than 10 while also printing the helping message ("verbose = TRUE"). With N < 10 and verbose = TRUE, the R session will automatically exit. But if we do not print the helping message ("verbose = FALSE"), the package works fine. To reproduce the error, I use the original sample code from the package and changed the number of distinct units from 10 to 7. All the other parts stay the same as the original sample code.
I am using wfe version 1.9.1 and found that the current version of the package does not allow the number of strata to be less than 10 while also printing the helping message ("verbose = TRUE"). With N < 10 and verbose = TRUE, the R session will automatically exit. But if we do not print the helping message ("verbose = FALSE"), the package works fine. To reproduce the error, I use the original sample code from the package and changed the number of distinct units from 10 to 7. All the other parts stay the same as the original sample code.
My hunch is that the sudden exit of R session is cased by these few lines in C which relates to "verbose" but I could be wrong. https://github.com/insongkim/wfe/blob/d7c0b7668a3cb62bbd0b048667924f8e4df75449/src/wfe.c#L1060-L1067