Did you load the library? library(nortest) lillie.test(rnorm(100, mean = 5, sd = 3)) lillie.test(runif(100, min = 2, max = 4))