Run external programs from R