Killing several processes

Try using the pkill command:

pkill --full /usr/lib/R/bin/exec/R

From the pkill man page:

pkill will send the specified signal (by default SIGTERM) to each process.

[...]

      -f, --full
        The pattern is normally only matched against the process name.
        When -f is set, the full command line is
        used.

Try this command,

ps aux | awk '/\/usr\/lib\/R\/exec\/R/ {print $2}' | xargs kill

OR

pa aux | awk '/\/usr\/lib\/R\/bin\/exec\/R/ {print $2}' | xargs kill

You can use :

ps -ef| awk '/\/usr\/lib\/R\/bin\/exec\/R/ {print $2}' |xargs kill -9