Closed janzzon closed 8 years ago
Hi!
Thanks for your bug report! Maybe it is not clear enough in the documentation, but pin_ctrl()
checks if it is a correct pin according to the control number. In you example the very format of the pin is incorrect (only 12 months in a year) an the the function can not parse the pin.
I suggest you use this code to solve your problem.
my_pin <- "202100-6255"
!(is.na(pin_ctrl(my_pin)) || !pin_ctrl("202100-6255"))
But you post has given rise to two other potenitial bugs. Thank you!
Functions
pin_ctrl()
&oin_ctrl()
should returnFALSE
if pin or oin is invalid, but it doesn't.When functions is supplied with valid pin or oin numbers, it returns
TRUE
as supposed.Sessioninfo:
Version