목록C# (1)
5시간코딩
c#에서 R Code를 실행할 때 2가지 방법
1. Process로 직접 RTest.R 을 실행시키기 string RScriptPath = @"C:\Program Files\R\R-3.4.2\bin\x64\Rscript.exe"; string RCodeFilePath = @"C:\RTest.R"; ProcessStartInfo pstInfo = new ProcessStartInfo(RScriptPath, RCodeFilePath); pstInfo.UseShellExecute = false; pstInfo.RedirectStandardOutput = true; Process.Start(pstInfo); Console.WriteLine("R Done!!"); 2. R 연동시킨 후 RTest.R을 불러오는 RCode 작성하기 string path = @"..
C#
2019. 12. 12. 14:42