But naming just some causes validateFamilyParms() to incorrectly determine what the parameters are:
r$> rtrunc(10, 45, 12, a = 50, family = "gaussian")
Error in validateFamilyParms(family, parms) :
The {, } parameter set does not match the normal family. Expected set of parameters: {mean, sd}. Please change the family to match the expected parameters or use a different family.
r$> rtrunc(10, 45, 12, b = 60, family = "gaussian")
Error in validateFamilyParms(family, parms) :
The {, } parameter set does not match the normal family. Expected set of parameters: {mean, sd}. Please change the family to match the expected parameters or use a different family.
Naming all arguments except
n
works fine:Naming none also works fine:
But naming just some causes
validateFamilyParms()
to incorrectly determine what the parameters are: