plot_networksize() has been refactored to use modern R packages & methods,
resulting in readable, maintainable code. Details here: http://rpubs.com/johnbwilliams/refactor. Minor adjustments are needed to drop in place. Package dependencecy considerations apply.
Trac: Username: johnbwilliams
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Child items ...
Show closed items
Linked items 0
Link issues together to show that they're related.
Learn more.
I'll pick this up and extend it to all R code we have, after writing more recent R code with help of dplyr and tidyr.
johnbwilliams, if you're still around, maybe you'd like to review the changes?
Trac: Owner: metrics-team to karsten Summary: Refactor plot_networksize() to use modern R packages and methods to Refactor R code to use modern R packages and methods Status: new to accepted
I started making changes and pushing them to master. No need to do the full review process before merging here, it's just presentation. I'll make more changes over the next few days.
Assuming the committed code already got tested regarding functionality and calculates the correct results I checked for readability and the like.
The modernization makes all much more readable. What hinders here and there is the line breaks and indentation, but that will be work after the style guide is settled (cf. #24707 (moved)).
Some functions still use the old code style, so I'd say let's leave this ticket open for now. I'll un-assign it, though, because I'm done for the moment. Feel free to grab it back.
And yes, let's tackle the indentation stuff in #24707 (moved).
Trac: Owner: iwakeh to metrics-team Status: merge_ready to assigned