Code snippet in R to create interactive network using d3 and push to github pages