1. Learn
  2. /
  3. Courses
  4. /
  5. Defensive R Programming

Connected

Exercise

Absolute vs relative

Absolute paths contain too much information on your particular set-up, e.g. your user name. This makes it hard to share code - you are unique after all! The evil that are absolute paths can be defeated using the might of relative paths.

In this exercise, we assume that you are in the directory survival/.

Instructions

100 XP
  • Rewrite the absolute paths - /home/repl/survival/input/ - as relative paths.