Probleme with gRain Package and R release 3.5.0 under Rstudio Version 1.1.447. Unable to reach library"gRain

Unable to reach library"gRain

library(bnlearn)
library(lattice)
library(gRain)
....
bn_mle = bn.fit(res_hc,Donnees.Learn,method = "mle",iss=1, debug=TRUE)
jonction = as.grain(bn_mle)
Loading required namespace: gRain
Failed with error: ‘there is no package called ‘RBGL’’
Error in check.and.load.package("gRain") :
this function requires the gRain package.

Would this library be not compatible with the newest R release 3.5.0 ?
Thanks for infos

You should try to reinstall that package (install.packages("gRain").

Also looks like you'll need to install the RBGL package, which, it seems is not available through CRAN anymore, but is through Bioconductor:

1 Like

Hi Mara
Thanks for this info. I investigate right away on this.

Have a nice end of week

*This e-mail message is intended for the internal use of the intended recipient(s) only. The information contained herein is confidential/privileged. Its disclosure or reproduction is strictly prohibited. If you are not the intended recipient, please inform the sender immediately, do not disclose it internally or to third parties and destroy it.*