run local Rscript on remote R server -


i trying run rscripts on remote server has fixed ip-adress. background following. connected front-end web app r , able insert different values, passed r, different outcomes evaluated. works fine when run locally. want able run web-app every location, set rserver username, password etc.

what want next establish connection between r , server. wasn't able find on topic yet, hope can me this.

  1. establish connection rserver ip.
  2. login username , password
  3. tell r script find rscript.exe file

doing locally tell php-file:

$command = '"c:\users\username\documents\r\r-3.3.1\bin\rscript.exe" "'.__dir__.'\rfile.r" '.$json; 

so tell him find rscript.exe , read rfile.r.

thanks help.


Comments