Closed lenakba closed 5 years ago
Fixed on GitHub. Please test and report back.
Thanks for making this change, it's going to be a big help to my team who frequently useqic()
. However, we exclusively use the latest CRAN version. Do you have an estimation for when the next CRAN release will be?
No promises. But probably within a couple of weeks.
When using time data and defining x.period, qic works just fine:
library(qicharts2)
qic(x = date, y = los, data = cabg, x.period = "month", chart = "xbar")
Also, you can run qic without specifying x.period:
library(qicharts2)
qic(x = date, y = los, data = cabg, chart = "xbar")
But if you define x.period as NULL, the qic command returns an error and the figure is not returned:
This is problematic when someone calls the qic-command in a function where x.period is defined as NULL by default.
I think this can be solved by replacing
!missing
with!is.null
in this part of the qic function: