executing an r script with bash