public bool initR() { Message = ""; try { _rdn = new RdnConnector(); _rdn.Init("R"); return(true); } catch (Exception e) { var errmsg = "R Init failed: " + e.Message; Console.WriteLine(errmsg); Message = e.Message; return(false); } }
public bool initR() { Message = ""; try { _rdn = new RdnConnector(); _rdn.Init("R"); return(true); } catch (NullReferenceException) { var errMsg = @"Unable to connect to R. Confirm that R 4.x is installed by examining directory C:\Program Files\R or C:\Program Files (x86)\R"; Console.WriteLine(errMsg); Message = errMsg; return(false); } catch (Exception e) { var errMsg = "R Init failed: " + e.Message; Console.WriteLine(errMsg); Message = errMsg; return(false); } }
public bool initR() { Message = ""; try { _rdn = new RdnConnector(); _rdn.Init("R"); return true; } catch (Exception e) { var errmsg = "R Init failed: " + e.Message; Console.WriteLine(errmsg); Message = e.Message; return false; } }