r_cmd_install function

Install a Tarball or a Directory