sbfnk / rbi

R package for Bayesian inference with state-space models using LibBi.
https://sbfnk.github.io/rbi/
24 stars 9 forks source link

Passing Inputs as a list and the new force_inputs option. #16

Closed seabbs closed 6 years ago

seabbs commented 6 years ago

Hi Seb,

First off, great package! Thanks for all the hard work.

Just updated to the latest GitHub version and I am seeing an error with my inputs not being found by Libbi. I have been passing them in as a named list of data frames and everything has been working as expected up to now.

Looking at your latest series of commits I see that a force_inputs option has been added for use with input files. Setting this to be false (rather than the default true) gets me back to everything working properly. Not sure if this is a bug or if passing inputs as a list is being deprecated!

Happy to knock up an example if useful.

Thanks,

Sam

sbfnk commented 6 years ago

You're right - this change is causing some problems with input files. I'll have a look at fixing this. In the meantime, setting force_inputs=FALSE is a good workaround.