dkesada / dbnR

Gaussian dynamic Bayesian networks structure learning and inference based on the bnlearn package
GNU General Public License v3.0
44 stars 10 forks source link

Error for dbnR::plot_network() using R 4.0.2 #5

Closed n8shadow closed 4 years ago

n8shadow commented 4 years ago

Hi, currently I upgraded my R to version (4.0.2). Since then I'm getting the following error when trying to plot a network (as in the example of the vignette):

Error in sprintf("Package %s needed for this function to work.") : too less arguments

Would be nice if that could be fixed.

dkesada commented 4 years ago

Hello! There was a typo in one of the security checks, I've fixed it and it should be working in both master and devel branches. When you upgraded to R 4.0.2, a new library was created and you are probably missing one of the suggested packages that the plot functions need to work. It will now prompt you which one is it and you will need to install it in order to be able to plot networks.

Let me know if its also fixed in your end after installing from github and I'll close the issue. Cheers!

n8shadow commented 4 years ago

Hi, thanks for that quick fix! I confirm it is working on master again. However, I did not test on R4.x since I had to go back to R3.6.3 due to unstable behavior of R4.x and rtools40. Regards!