Displaying 15 results from an estimated 15 matches for "startrserver".
Did you mean:
start_server
2011 Apr 01
4
Rexcel path problem
...n is
interpreting the "\T" part of the path as an R command. It does not
recognize the "X:\Trading\Energy\JorgeSpace\TMPholder\cpixe\home
models\" as a one single string, or path.
Any ideas how can I fix the problem?
Thanks ,'
Jorge
VB code
Sub tester()
Rinterface.StartRServer
Rinterface.RRun
("source('X:\Trading\Energy\JorgeSpace\TMPholder\cpixe\home
models\toto.R')")
Rinterface.StopRServer
End Sub
"R cript code toto.R"
path = getwd()
setwd(path)
a = 5
b=5
x = matrix(rnorm(a*b),a,b)
a = 5
b=5
y = matrix(rnorm(a*b),a,b...
2002 Mar 07
2
Statconnector and Excel
...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 RInterface.RRun("F11b1<-read.table(""c:/test/Testb1.txt"", header=TRUE)")
Call RInterface.RRun("passTestb1<-pass(Testb1, Threshold=5, ExtremeThreshold=5)")
Call RInterface.RRun("passTestb1")...
2010 Mar 14
1
R-Excel Macro Problem
Hi, I was trying to run your code in my VBA editor, however could not
succeed. The execution stumbled in the line "Call Rinterface.StartRServer"
itself. I have RCOM package installed into my R environment. Do I need to
install anything else to run that? Would guys here guide me?
Thanks
--
View this message in context: http://n4.nabble.com/R-Excel-Macro-Problem-tp858831p1592196.html
Sent from the R help mailing list archive at Nabble...
2004 Oct 06
1
RExcel : problem with error handler?
Dear R-help,
Call RInterface.StartRServer ' Works fine
Call RInterface.RRun("objects()") ' Works fine
Call Rinterface.RRun( other R commands which do not generate errors, the
demos etc ) ' Works fine
But ...
Call RInterface.RRun("doesnotexist") ' Sends Excel into endless loop it
appears
After a...
2009 Jan 30
1
run query using rexcel runrfile and rodbc sql query
...and in an excel plugin, using the rexcel
package. When I run the code from my excel plugin I get an error:
"Error -2147220502 in Module RExcel.RServer Error running expression
eval(parse(text="source(.rexcel..hzpouai)"))"
Here is my excel plugin code:
rinterface.StartRServer
rinterface.RRun "setwd(""C:/Documents and Settings/bbolt/
Desktop"")"
ChDir "C:/Documents and Settings/bbolt/Desktop"
rinterface.RunRFile "Script.r"
It works fine if Script.r is something simple like:
Text <- data.frame(Hello=&qu...
2005 Dec 31
1
r: RODBC QUESTION
hello all
i have a quick question. i have been using the RODBC library (trying to
read Excel data
into R but i am doing this by using Rexcel. this is probably not the
correct forum -
sorry for this).
my code is shown below:
Sub A()
'start the connection to R
Call RInterface.StartRServer
RInterface.RRun "library(RODBC)"
RInterface.RRun "A = odbcConnectExcel('c:/TRY.xls')"
RInterface.RRun "q1 = sqlFetch(A, 'Sheet1')"
RInterface.RRun "odbcClose (A)"
Worksheets("out").Activate...
2005 May 26
1
Help needed - Use of RSrvr in macro mode
...e attachment (one sheet named 'test', one cell A1
containing : smalltest(NA))
Macro :
Sub smalltest()
Range("A3").Select
Range(Selection, Selection.End(xlToRight)).Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Call RInterface.StartRServer
Call RInterface.RunRFile("h:\R-Sources\smalltest.r")
Windows("smalltest.xls").Activate
CommandString = Range("test!a1")
MsgBox (CommandString)
Call RInterface.RRun("CommandString")
Workbooks.Open Filename:="c:\windows\temp\resulta...
2012 May 21
16
Contactos en Madrid-ayuda con instalación
...funcionar un programa
que necesita de la instalación de RPROJECT y REXCEL. He mirado varias guías
e instalado los programas pero obtengo varios errores.
El principal es que tras instalar RProject, Rexcel y statcon y al intentar
correr esta macro desde Visual Basic…
Sub Start()
RInterface.StartRServer
RInterface.StopRServer
ActiveWorkbook.Save
End
… obtengo el siguiente error “Error de compilación No puedo encontrar
proyecto o biblioteca”. He revisado los addin de VSB y todo parece correcto.
Revisando la web vi que desde RProject tenía que correr este código:
install.packages(&q...
2011 Sep 09
0
RExcel - RunRFile Errors
...ine:
source("S:/Folder/FileName.R")
As mentioned in RExcel I can run by selecting the cell and choosing Run
Code.
I have tried to write the macro for this operation as the following:
Sub FindIndex()
' To run the price index in R
Application.DisplayAlerts = False
Rinterface.StartRServer
Rinterface.RunRFile "S:/Folder/FileName.R"
'RInterface.StopRServer
Application.DisplayAlerts = True
End Sub
But it returns the error "Error when sourcing R file S:/Folder/FileName.R"
I have also tried a simple
RInterface.RRun("source(""S:/Folder/...
2010 Oct 30
1
R & VBA
...RngData As Range
Dim RngData2 As Range
Set RngData = Range("A1:A10")
Set RngData2 = Range("B1")
Elements = 100
ReDim DblArray(0 To Elements - 1)
For i = 0 To Elements - 1
DblArray(i) = Rnd()
Next i
Start = Timer
Call RInterface.StartRServer
Call RInterface.PutArray("test", RngData)
Call RInterface.RRun("z<-median(test)")
Call RInterface.GetArray("z", RngData2)
Call RInterface.StopRServer
'Range("B1") = RngData2
Length = Length + Timer - Start
Debug.Print Length
End...
2010 Apr 18
2
how to use Excel VBA's Shell() to call and execute R file
I have an R file R_test.R saved in C:\R_test folder. The R_test.R looks like
this:
setwd("C:/R_test")
rnorm(100)
write(rnorm(100),"data.txt")
q(save="no", runLast = F)
Next I would like use an Excel VBA/macro Shell() function to call R and
execute R_test.R file. The syntax is *Shell(pathname*[*,windowstyle*]*)*
I wrote an Excel macro RunRcode like this:
Sub
2009 Feb 06
0
RExcel waiting for OLE action
...l not
execute the Worksheet.Pictures.Insert statements or the GetArray
statements until
the user clicks OK on the dialog box.
Any insight into how I can avoid the dialog box would be appreciated.
The macro is below. It's your basic, send-to-R, run R, retrieve-from-R
macro.
Call Rinterface.StartRServer
Call Rinterface.RRun("rm(list = ls())")
Call Rinterface.RRun("dev.off()")
Call Rinterface.PutArray("mat1", Range("DATA_INPUT_OUTPUT!B7:I506"))
Call Rinterface.PutArray("mat2", Range("DATA_INPUT_OUTPUT!J7:Q506"))
Call Rinter...
2010 Apr 16
3
run R script from Excel VBA
I wrote a R script say called computeCovarMatrix.R and i want to call and
run this piece from Excel visual basic. does anyone know how to do that?
thanks,
KZ
[[alternative HTML version deleted]]
2008 Mar 20
2
I need help integrating ggplot2 into Excel
Dear all
I use ggplot2 extensively for my plotting routines and rexcel to have the
best of two worlds. (RExcel v 1.75 and R (D)Com v. 2.5)
I can run my ggplot functions, such as qplot(...), in scratchpad mode, but
not in Macro nor Worksheet functions mode.
I have tried the following in Macro mode:
Call RInterface.RRun("library(ggplot2)")
...
Call
2010 Feb 23
5
export tables to Excel files
Dear R users,
I've just posted a similar question about Illustrator.
This time I would like to export the results of my statistic tables and
my dataframes into Excel files.
Up to now I've used write.csv(), but I have to resave every file in .xls
in Excel.
I would like to know if there is a function or package to export
directly into *.xls.
I have found xlsReadWrite which would be