Hard to tell without more context, but if you can't install R on that particular system, run R on another one (it could be a virtual machine) and make the output of your script available trough an API.
Hard to tell without more context, but if you can't install R on that particular system, run R on another one (it could be a virtual machine) and make the output of your script available trough an API.