Calculate the auto-correlation time using only R. Consider using calc_act instead, as it is orders of magnitude faster
Useful links