Update tutorial templates, handle missing R