syncing R code