translations and path functions in R