मुझे कुछ सी # एप्लिकेशन में आर इंटरफ़ेस करने की आवश्यकता है। मैंने rscproxy_1.3
और R_Scilab_DCOM3.0-1B5
को STATCONNECTORCLNTLib
, StatConnectorCommonLib
और STATCONNECTORSRVLib
पर COM संदर्भों को जोड़ा लेकिन मैं अभी भी इसे काम नहीं कर सकता।सी # - आर इंटरफ़ेस
जब मैं परीक्षण कार्यक्रम निम्नलिखित चलाएँ:
Unhandled Exception: System.Runtime.InteropServices.COMException: Exception from HRESULT: 0x80040013
at STATCONNECTORSRVLib.StatConnectorClass.Init(String bstrConnectorName)
अग्रिम धन्यवाद:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
//COM references
using STATCONNECTORCLNTLib;
using StatConnectorCommonLib;
using STATCONNECTORSRVLib;
namespace R_TESTING
{
class Program
{
static void Main(string[] args)
{
StatConnector sc1 = new STATCONNECTORSRVLib.StatConnectorClass();
sc1.Init("R");
}
}
}
मैं इस अपवाद मिलता है।
अद्यतन: ठीक है, अभी भी कोई भाग्य नहीं है। मैं यह बताने की कोशिश करूंगा कि मैंने अभी तक क्या किया है।
Installed R-2.12.2-win.exe from rproject to the
C:\Program Files\R\R-2.12.2
Downloaded rscproxy_1.3-1.zip and copy/pasted it to the
C:\Program Files\R\R-2.12.2\library
Installed R_Scilab_DCOM3.0-1B5.exe to the
C:\Program Files (x86)\R\(D)COM Server
साइलैब के साथ एक बुनियादी परीक्षण आता है। मैं इसे चलाने के लिए कोशिश की, लेकिन मैं त्रुटि निम्न है:
Loading StatConnector Server... Done Initializing R...Function call failed Code: -2147221485 Text: installation problem: unable to load connector Releasing StatConnector Server...Done
से मैं पथ/प्रणाली चर में देखा और कोई रास्ता/R_HOME/R_USER की जानकारी नहीं मिली। इसके अलावा, मुझे रजिस्ट्री में संबंधित आर कुछ भी नहीं मिला।
मुझे लगता है कि मैं कुछ गलत कर रहा हूं, इसलिए मुझे आपके लोगों से बहुत मदद की ज़रूरत है।
देखें http://stackoverflow.com/questions/12834704/exception-from-hresult-0x80040013-when-intregating-r-with-c – Contango