Yes. I have searched and have done this tutorial which has a focus on "NbClust" and "factoextra" packages.
http://www.sthda.com/english/wiki/print.php?id=241#required-packages
but the base of this tutorial for calculating "silhouette coefficient" and "Dunn index" is specific for these packages. For example, in WGCNA I calculate my Hierarchical Clustering based on hclust() function but at that tutorial, you should run below code for calculating Hierarchical Clustering object (iris.scaled is the scale of iris dataset):
res.hc <- eclust(iris.scaled, "hclust", k = 3, method = "complete", graph = FALSE)
As you see, in that code res.hc as a Hierarchical Clustering object is created by eclust() which is a function in "factoextra" package and completely different from WGCNA method. I appreciate if you share your comment with me.