set ess for R