Closed CharlesBordet closed 1 year ago
The if statement was raising a warning when distribution is defined as a list (ex: list(name = "tdist", df = 6)) for R 4.1 and before.
list(name = "tdist", df = 6)
The warning became an error since R 4.2+.
Since the name of the distribution is always named, the name is available under object$distribution$name.
object$distribution$name
This closes #57
Thanks @CharlesBordet!
The if statement was raising a warning when distribution is defined as a list (ex:
list(name = "tdist", df = 6)
) for R 4.1 and before.The warning became an error since R 4.2+.
Since the name of the distribution is always named, the name is available under
object$distribution$name
.This closes #57