I am trying to build a Bayesian network model. However I am unable to install a suitable package. Tried gRain
, bnlearn
and Rgraphviz
for p
The packagesgraph
, RBGL
and Rgraphviz
are not on CRAN but on bioconductor.
To install these packages, execute
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install(c("graph", "RBGL", "Rgraphviz"))
Then install the packages from CRAN in the usual way:
install.packages("gRain", dependencies=TRUE)
See also the gRain installation instructions.