Add libraries dependencies used in export visExport
addExport(graph, pdf = TRUE)
graph
: a visNetwork object
pdf
: boolean. Add jsPDF or not ?
graph htmlwidget with dependencies attached.