SIH Tech Tidbits

Useful tips, libraries and tools from the Sydney Informatics Hub team

Articles




Using ellipsis (...) and purrr::pmap()

Function with arbitrary arguments using ellipsis (...) Let's define a function which takes in arbitrary arguments and evaluates an expression on those arguments: eval_expres <- function(expres, ...){ #this part gets all the …





Cleaning a git diff

Code review is easiest when the changes offered by a head branch onto a base branch are focussed on a single purpose of change. When they are not, the diff …


R Profiling: Making R less aRduous

Table of contents: Brief introduction to profiling, and why we might want to do it Methods to measure function speed/performance Ways to generate function profiles Visualizing and analaysing profiles …