@hadleywickham what makes our life hard is that there's no way to set the wd to current script directory in R.