R: Upload a run and get the metrics from the server.