adding tex and R