Search code examples
rpowershellpowershell-remoting

Powershell R Script Remote Execution


I´ll try to keep my Question Simple. I have an R script which when executed localy works perfectly, now if i try to launch it remotly with an powershell script with the invoke-command, i´ll get an error message from R(Cant allocate Vector of Size 126.6 MB). The R script remotly finds all filepaths needed and have the same credentials as the local execution, but i get the R Error Message.

Any ideas if there are any restrictions from remote executions? I´ll also tried to use an extra .bat file which executes the R Script, but i get the same R Error.

Kr Johann


Solution

  • the problem was that the r Script needed more then 1 GB Ram and the original settings of remoting for powershell is only 1 GB. I followed the instructions in this blog https://blogs.technet.microsoft.com/heyscriptingguy/2013/07/30/learn-how-to-configure-powershell-memory/ and could get my script running from remote.