could not find function "duncan.test" Calls: <Anonymous> ... withVisible -> eval_with_user_handlers -> eval -> eval

I think we need a FAQ: How to do a minimal reproducible example ( reprex ) for beginners.