Fix checkout named branch

* R/checkout.r: Fix the index from 1 to i to the remote branch to
  track.

Signed-off-by: Stefan Widgren <stefan.widgren@gmail.com>