Displaying 20 results from an estimated 400 matches similar to: "How to run R-script from remote VB program"
2005 Feb 03
0
call RODBC function from DCOM
Hi.
My VB program run a R - script located in the server
with R DCOM server. The R - script is designed to send
a query to DB through ODBC. There is NOT any problem
when I run each code from R-window interface.
However, when I call the R-script from my VB program
it stucked after calling "sqlQuery" statement. I can
check that odbcConnect(dsn, uid, pwd) returns -1.
2010 May 07
4
Use of R in C#
I have a C# program that requires the run of a logistic regression. I have downloaded the R 2.11 package, and have added the following references to my code:
STATCONNECTORCLNTLib;
StatConnectorCommonLib;
STATCONNECTORSRVLib;
In my code I have:
StatConnector scs = new STATCONNECTORSRVLib.StatConnectorClass();
scs.Init("R");
The init step returns the below error which seems to indicate
2009 Apr 30
1
odbcConnectAccess function
HI:
Is it possible to use the RODBC package within MS Access. I have been using from R but was just wondering if it could be used along with R(D)COM. Something like this:
Dim dbs As DAO.Database
Dim rst As DAO.Recordset
Dim myApp As StatConnector
Set myApp = New StatConnector
myApp.GetErrorText
myApp.Init "R"
myApp.EvaluateNoReturn "library(RODBC)"
myApp.EvaluateNoReturn
2008 Sep 25
0
C++ & R: Displaying a lattice graphic using D Com
Dear list members,
When I modify the MFC sample (using the statconnector graphics device) to
show a lattice graph in the Active X control (actually the wireframe from
http://addictedtor.free.fr/graphiques/graphcode.php?graph=40 ) the program
runs without generating any errors, but the data-driven part of the plot
does not display. The bounding box is displayed, but not the axes or data
within
2003 Sep 12
1
help - "Object is static, operation not allowed" Error
Hello,
I am a newbie in R project and trying to call prcomp(x) of R function
using (D)COM server communicate with R in ASP, and encountering the error
"Runtime error -2147221493(8004000b). Automation Error, Object is static,
operation not allowed." at line Result=StatConn.Evaluate("y<-prcomp(x)"). E
ven I have added the line StatConn.EvaluateNoReturn("library
2008 Oct 23
0
RODBC and RDCOM
I got a table on SQL Server, which has columns EquationId (int) and
Formula (varch(900)).
I need to select Formula with certain EquationId, for example,
Select Formula from OGA_DEV.dbo.Equation where EquationId = 3
I tried to work within RGui using RODBC:
> library(RODBC)
> conn = odbcConnect("SQL Server")
> odbcQuery(conn, "Select Formula from OGA_DEV.dbo.Equation where
2003 Sep 02
0
File in use error (PR#4047)
Full_Name: Edward J. Oakeley
Version: 1.7.1
OS: Windows XP
Submission from: (NULL) (212.47.183.3)
This bug occurs when using the (D)COM server to connect to the "expresso"
command of the Bioconductor Affy package. It may be a bug of R, (D)COM or Affy
ut I will report it here anyway as it feels like an R bug.
The Affy package when invoked will read a series of large (10Mb) text files
2002 Mar 07
2
Statconnector and Excel
Hi,
I'm trying to combine a VBA macro and a R package. I've installed the R-(D)COM and the R-excel interface by Neuwirth. They seem to work both. However I would like to display the r-generated data in an Excel sheet as an array but I don't manage.
Here is an example of my source:
Sub doR()
Call RInterface.StartRServer
Call RInterface.RRun("library(mdnn)")
Call
2009 Jan 06
0
hi i have a problem with implementing R-Project in C#
Hi,
This is Kiran
I tried to work on r-project through C#.Net
While calling the r-project I got an error that
*System.Runtime.InteropServices.COMException(0x80040013):Exception from
HRESULT:0x80040013 at STATCONNECTORSRVLib.StatConnectorClass.Init(String
bstrConnectorName) at IAG.RD.RcomWrapper.Rcom..ctor() at
demo.DemoForm.RcomExecute()*
Can any one suggest how can I salve this
2009 Mar 25
0
R Query
I am using R in C#. I installed R 2.8.1 and R-(D)Com R scilab
DCOM3.0-1B5.exe. I got an error when i run the web application at the line
where R is initilized as
"System.Runtime.InteropServices.COMException was unhandled by user code
Message="Exception from HRESULT: 0x80040013"
Source="Interop.STATCONNECTORSRVLib"
ErrorCode=-2147221485
StackTrace:
at
2006 Nov 27
1
R.DLL mapping by P/Invoke
After a long processing, I was able to create a version of a small C# class
that was able to emulate the rproxy by P/Invoke. This is mostly to find a
workaround a performance problem of the StatConnector.
It's almost work but ... I have strange memory exception when I call the
print function. The variable seems to not survive from one call to the
other.
As there is no debug symbol for
2010 Mar 26
0
Please help Me(R Language)
Hi
thank you very much for advanced help.
I am new to R language..
I am using r language with asp.net. while i am run below code. the
graphics window open out side of my *.aspx *page(it is opened as a
*pop up*window) .i need to open that window with in my .
*aspx *page(without using( png,jpg etc...) & any of image formats.)
code:
StatConnector objStatConn = new
2012 Apr 18
0
Loudlink Explorer 3.0.0
Hi, I try to use Loudlink Explorer (free download:
http://loudlink.eu/webshop/index.php?main_page=document_general_info&cPath=2&products_id=70).
This program is used to copy mp3's to sd-card for use in Loudlink
devices. I tried to copy by hand, but the files are not properly
recognized by loudlink device without a special formated index file. So
I need this software, sorry.
2007 Oct 17
0
Using R.dll in .NET IPC
Hi - I wrapped R.dll up using somebody code online (see below). I am comparing R on .NET IPC with R(D)COM.
I got it all working. Except, I realize that in my client code of the IPC remoting, if I call 'plot' function in R via EvaluateNoReturn, I don't seem to see any results on the R plot window (although the window pops up). Is there anything to do with the code of R.dll wrapper
2006 May 16
1
R(DCOM) / StatConnector and PHP
hi
does anyone have knowledge on how to connected to StatConnector from PHP
I have tried:
new COM("STATCONNECTORSRVLib.StatConnector") or die("Unable to
instantiate StatConnector");
with no succes
regards soren
2003 Jan 09
0
Installing R-Excel Interface - Help requested (long)
Dear All,
I have attempted to install the R-Excel Interface with poor results.
The version of R is 1.6.1, the version of R-Excel is 1.0, the version of COM
is 0.99. All of these were downloaded Monday, 6 January 2003. R (version
1.6.1) is installed on the machine and appears to run correctly on its own.
The computer is a Compaq Pentium 4 machine with 128 meg of RAM running
Windows 2000 and
2001 Aug 12
1
R (D)COM automation server for windows, type mismatch?
Hello!
I just started experimenting with the (D)COM automation server for R
(server version 0.99, R 1.3.0, Win NT)
All the precompiled sample executables work.
When I write programms myself, in this case Visual Basic for Applications
within Excel, I can attach a graphics device but not a character device.
The controls I added to the form by means of the 'toolbox' both originate
from
2003 Jul 19
1
Method 'EvaluateNoReturn' of object 'IStatConnector' failed
Hi All,
I am using the R ActiveX component (v1.2). I have written a custom function
in R which returns a dataframe. I want to be able to retrieve the contents
of the returned dataframe in my application.
Here is a snippet of the code (line that throws exception). X has been
correctly declared and init'ed earlier on in the code.
x.EvaluateNoReturn("results_frame <-
2003 Apr 21
2
R(D) Com under R1070
Dear List,
I have unregistered the working installation of R(D)COM from r1060 as
described in http://cran.r-project.org/contrib/extra/dcom/ReadMe.txt,
and have re-installed it for r1070.
Now, vbtest gives the following message:
Loading StatConnector Server... Done
Initializing R...Function call failed
Code: -2147221485
Text: installation problem: unable to load connector
Box: Method
2003 Sep 10
2
Need your help-SOS
Hello,
I am a newbie in R project and trying to call prcomp(x) of R function
using (D)COM server communicate with R in ASP, and encountering the error
"Runtime error -2147221493(8004000b). Automation Error, Object is static,
operation not allowed."
Source code is shown as below:
<%
Set StatConn=Server.CreateObject("StatConnectorSrv.StatConnector")