merliseclyde / BAS

BAS R package for Bayesian Model Averaging and Variable Selection
https://merliseclyde.github.io/BAS/
GNU General Public License v3.0
41 stars 16 forks source link

BLAS/LAPACK routine `DSYRK` gave error code -7 #37

Closed ecoronado92 closed 3 years ago

ecoronado92 commented 5 years ago

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

merliseclyde commented 5 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

ecoronado92 commented 5 years ago

I see! Ok that makes sense - glad I was able to help with this bug :)

merliseclyde commented 3 years ago

Addressed in release BAS 1.5.4 (forgot to close issue :-)