Closed ecoronado92 closed 3 years ago
Ahh - the problem is that the code to create the test/training data for the caravan
data redefines train
for the simulated data. This is leads to df[train,]
to have zero rows, which when passed to the functions does not catch that there n
is zero.
Will need to add checks to catch this and throw an error (plus unit test for case when n=0)
Thanks! m
I see! Ok that makes sense - glad I was able to help with this bug :)
Addressed in release BAS 1.5.4 (forgot to close issue :-)
Describe the bug When knitting the attache Rmd Document I get this error.
To Reproduce Steps to reproduce the behavior:
See attached file (remove .txt extension and run on RStudio) test_BAS.Rmd.txt
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Additional context test in versions from both CRAN and github repo, locally installed