The new_predictor_* functions do not validate user input. The following examples should result in an error or at least a warning. However, they currently run without issue.
library(pcsstools)
x <- new_predictor_snp(maf = NA)
z <- new_predictor_binary(p = 100)
y <- new_predictor_normal(mean = NA, sd = -1)