#7332

urlwolf
Member

another one:
5) pretty format (aligning).
This is a beautiful chunk of code:


vc <- vcount(graph)
if (is.null(params$niter)) { params$niter <- 500 }
if (is.null(params$maxdelta)) { params$maxdelta <- vc }
if (is.null(params$area)) { params$area <- vc^2 }
if (is.null(params$coolexp)) { params$coolexp <- 1.5 }
if (is.null(params$repulserad)){ params$repulserad <- params$area * vc }
if (is.null(params$weights)) {

vim, emacs, and slickedit can do this. It doesn’t seem terribly difficult right?