search for: evaluatenoreturn

Displaying 13 results from an estimated 13 matches for "evaluatenoreturn".

2009 Apr 30
1
odbcConnectAccess function
...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 "myDB <- odbcConnectAccess(CurrentDb)" 'query the database and save it as R object 'a' myApp.EvaluateNoReturn "a <- sqlQuery(CurrentDb, Paste(""select * From Sample""))" myApp.EvaluateNoRetur...
2003 Jul 19
1
Method 'EvaluateNoReturn' of object 'IStatConnector' failed
...(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 <- MyFunction()") I was intending to then invoke the GetSymbol method to retrieve the contents of results_frame into a local variable. I notice that this still dosen't work if I try to use the Evaluate method to directly assign the returned dataframe to my local...
2008 Oct 23
0
RODBC and RDCOM
...[1] [1] "((-0.19*({EthanePropaneMolFracTotal}*100)^2)+(12.3*({EthanePropaneMolFracTotal}*100))-13)*0.8" These works well within RGui. Then I tried to use RDCOM to communicate with .net: StatConnector curve = new STATCONNECTORSRVLib.StatConnectorClass(); curve.Init("R"); curve.EvaluateNoReturn("library(RODBC)"); curve.EvaluateNoReturn("conn = odbcConnect("+@"""" + "SQL Server" +@"""" +")"); curve.EvaluateNoReturn(odbcSqlQuery);//Select Formula from OGA_DEV.dbo.Equation where EquationId = 3 curve.EvaluateNoRet...
2008 Sep 25
0
C++ & R: Displaying a lattice graphic using D Com
...("StatConnectorSrv.StatConnector")))) { MessageBox("Error creating StatConnectorSrv"); return; } lConnector.Init(_T("R")); lConnector.SetCharacterOutputDevice(lCharDev); lConnector.AddGraphicsDevice(_T("Gfx"),m_GraphDev.GetGFX()); lConnector.EvaluateNoReturn(_T("require(lattice)")); lConnector.EvaluateNoReturn(_T("x <- seq(-pi, pi, len = 20)")); lConnector.EvaluateNoReturn(_T("y <- seq(-pi, pi, len = 20)")); lConnector.EvaluateNoReturn(_T("g <- expand.grid(x = x, y = y)")); lConnector.EvaluateNoR...
2003 Sep 02
0
File in use error (PR#4047)
...) text files from the working directory. These files contain information about a microarray experiment (CEL files). The instructions passed to R are as follows (VB .NET): ----- 'Make (D)COM connection Dim x As New STATCONNECTORSRVLib.StatConnector() 'Initialising R x.Init("R") x.EvaluateNoReturn("library(affy)") sPath = "c:\\temp\\" x.EvaluateNoReturn("setwd(" + Chr(34) + sPath + Chr(34) + ")") 'Reading files... x.EvaluateNoReturn("data <- ReadAffy()") 'Calculating RMA expression values... x.EvaluateNoReturn("eset <- ex...
2003 Sep 12
1
help - "Object is static, operation not allowed" Error
...(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 (mva)"), it still does not help me after I saw Wijk, H.J. van der's post mentioned that have to load library My environment is shown as below: OS: Win2000 Server R version: 1.7.1 DCOM version: 1.2 Source code is s...
2005 Feb 03
0
call RODBC function from DCOM
...quot;sqlQuery" statement. I can check that odbcConnect(dsn, uid, pwd) returns -1. ------------------VB code----------------------------- str = "setwd(" + """" + "C:/Program Files/R/rw2001" + """" + ")" RLink.EvaluateNoReturn(str) str = "source(" + """" + "a.R" + """" + ")" RLink.EvaluateNoReturn(str) ------------------R script: "a.R"----------------------------- library(RODBC); con = odbcConnect("dsn", uid = &qu...
2006 Nov 27
1
R.DLL mapping by P/Invoke
...you can find the reason of the crash, I will be extremely happy! Here is a sample program.cs to invoke the DLL (and crash) : using System; using System.Collections; using System.Text; namespace SharpR { class Program { static void Main(string[] args) { RWrapper.EvaluateNoReturn("print(\"Boom!\")"); } } } -------------- next part -------------- #define SUPERCONSOLE using System; using System.Collections; using System.Runtime.InteropServices; using System.Text; using Microsoft.Win32; namespace SharpR { /// <summary> /// Class...
2005 Feb 02
0
How to run R-script from remote VB program
...quot;a.R") in the dir path ("c:\") then call VB using source as below. Dim RLink As StatConnector RLink = New StatConnector RLink.Init("R") dim str str = "source(" + """" + "c:\a.R" + """" + ")" RLink.EvaluateNoReturn(str) I got an error message : An unhandled exception of type 'System.Runtime.InteropServices.COMException' occurred in MY_VB.exe Additional information: Object is static; operation not allowed "a.R" has codes to load RODBC package and collecting and running query result to the...
2010 Mar 18
1
r-help
hi I am doing a project in R language.I need help with creating a front end in R language. i created a dialog box with file menu n file consists of load ,save and quit options. But these options are not working.I try to load my data into r using these options but its not working.pls help. Your Mail works best with the New Yahoo Optimized IE8. Get it NOW!
2010 Mar 26
0
Please help Me(R Language)
...,jpg etc...) & any of image formats.) code: StatConnector objStatConn = new STATCONNECTORSRVLib.StatConnectorClass(); objStatConn.Init("R"); objStatConn.Evaluate("x <- 5"); objStatConn.Evaluate("y <- 40"); objStatConn.EvaluateNoReturn("plot(x,y)"); -- Thanks & Regards M.Sadanandam [[alternative HTML version deleted]]
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 below? I don't understand much of the code. But I have the feeling that graphic output was not specified to output correctly. Any help would be really...
2002 Mar 07
2
Statconnector and Excel
...stb1", Range("D2")) Call RInterface.StopRServer end sub but I get an error : "unsupported data when trying to execute "passTestb1" I also tried: Dim x As StatConnector Set x = New StatConnector MsgBox ("Initializing R...") x.Init ("R") x.EvaluateNoReturn ("F11b1<-read.table(""c:/test/Testb1.txt"", _ header=TRUE)") .. but then I don't known how to end Have you an idea to help me? Thanks, Nolwenn ---------------------------------------------------------------------- NetCourrier, votre bureau virtuel sur Interne...