SigWin-detector implementation in R