dev of R library flip