Restore the nuget packages The file path should follow unix directory path eg: C:/Folder/file.R Using R.NET library - http://jmp75.github.io/rdotnet/