When a bunch of the same process are running, kill it!
for commandz in $(ps aux | grep R | awk '{print $2}'); do kill $commandz;done