I needed to install Rgraphgviz package, for which i found this code
if (!requireNamespace("BiocManager", quietly = TRUE))
install.packages("BiocManager")
BiocManager::install("Rgraphviz", version = "3.8")
It seems I need to install BiocManager package as well. Can anyone help me with this? or is there an other way?