<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<id>tag:old.nabble.com,2006:forum-24314</id>
	<title>Nabble - Rcom-l</title>
	<updated>2009-10-04T00:26:26Z</updated>
	<link rel="self" type="application/atom+xml" href="http://old.nabble.com/Rcom-l-f24314.xml" />
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Rcom-l-f24314.html" />
	<subtitle type="html">RCOM and RExcel are packages to use the statistics package R from as a (D)COM
&lt;br&gt;client and/or server in Windows. This list discusses using these techniques.
&lt;br&gt;&lt;br&gt;Documentation, a Wiki and more information can be found at &lt;a href=&quot;http://rcom.univie.ac.at&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://rcom.univie.ac.at&lt;/a&gt;</subtitle>
	
<entry>
	<id>tag:old.nabble.com,2006:post-25735620</id>
	<title>Re: Need help for RExcel</title>
	<published>2009-10-04T00:26:26Z</published>
	<updated>2009-10-04T00:26:26Z</updated>
	<author>
		<name>ryusuke</name>
	</author>
	<content type="html">hmmm..... I am wondering there is an error when I try to connect to Rcmdr in Excel....
&lt;br&gt;&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/file/p25735620/error.jpg&quot; target=&quot;_top&quot;&gt;error.jpg&lt;/a&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-for-RExcel-tp24938578p25735620.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25726226</id>
	<title>Re: Need help for RExcel</title>
	<published>2009-10-02T23:55:32Z</published>
	<updated>2009-10-02T23:55:32Z</updated>
	<author>
		<name>ryusuke</name>
	</author>
	<content type="html">It should be done if you just follow the installation instructions, may be you forgot to activate the RExcel RegisteryKey in Start&amp;gt;&amp;gt;Program&amp;gt;&amp;gt;R&amp;gt;&amp;gt;RExcel
&lt;br&gt;&lt;br&gt;Hope this helps....</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-for-RExcel-tp24938578p25726226.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-25535284</id>
	<title>execute R by VBA</title>
	<published>2009-09-23T23:59:22Z</published>
	<updated>2009-09-23T23:59:22Z</updated>
	<author>
		<name>dhansekaran</name>
	</author>
	<content type="html">Hello everyone 
&lt;br&gt;&lt;br&gt;I am using RExcel, an add-in for R to use R within MS Excel workbook. The add-in is freely distributed by Statconn. Pls refer &lt;a href=&quot;http://www.statconn.com/&quot; target=&quot;_top&quot; rel=&quot;nofollow&quot;&gt;http://www.statconn.com/&lt;/a&gt;&amp;nbsp; 
&lt;br&gt;I need help to start writing VBA Macro to invoke and execute R to read .csv file. 
&lt;br&gt;This is the code what I made so far… but the compilation error was occured. 
&lt;br&gt;&lt;br&gt;Public ActiveServerAtStart As Boolean 
&lt;br&gt;&lt;br&gt;Sub Get_Value() 
&lt;br&gt;&lt;br&gt;&amp;nbsp; MsgBox &amp;quot;R putting data into excel&amp;quot; 
&lt;br&gt;&amp;nbsp; Rinterface.StartRServer 
&lt;br&gt;&amp;nbsp; Rinterface.RRun &amp;quot;z&amp;lt;-read.csv(&amp;quot;F:\\mycsvfile.csv&amp;quot;,header=TRUE)&amp;quot; 
&lt;br&gt;&amp;nbsp; Rinterface.GetArray &amp;quot;z&amp;quot;, Range(&amp;quot;Sheet1!A1&amp;quot;) 
&lt;br&gt;&amp;nbsp; Rinterface.StopRServer 
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;End Sub 
&lt;br&gt;&lt;br&gt;Here “mycsvfile.csv” is target file from which the data is needed to be retrieved. Get_Value() is macro name for the active worksheet. I want to get the data to the sheet1 (cell A1) of active work sheet. 
&lt;br&gt;&amp;nbsp; 
&lt;br&gt;Thanks in advance. 
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/execute-R-by-VBA-tp25535284p25535284.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24938578</id>
	<title>Need help for RExcel</title>
	<published>2009-08-12T08:06:37Z</published>
	<updated>2009-08-12T08:06:37Z</updated>
	<author>
		<name>guest314</name>
	</author>
	<content type="html">I followed the intruction and installed 
&lt;br&gt;&lt;br&gt;RAndFriendsSetup2091V3.0-16-2 
&lt;br&gt;&lt;br&gt;everything is successful. However, after all of the installation finished, I don't see RExcel on my machine. I see R on my machine. I can open Excel, but there's no sign of RExcel. What have I missed?
&lt;br&gt;&lt;br&gt;Thank you very much.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Need-help-for-RExcel-tp24938578p24938578.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24834063</id>
	<title>Embed R plots in C#</title>
	<published>2009-08-05T11:46:02Z</published>
	<updated>2009-08-05T11:46:02Z</updated>
	<author>
		<name>vshah</name>
	</author>
	<content type="html">I am trying to embed R plots in a visual C# windows form, so that I can have some buttons, and by clicking them, I can plot the chart on that window itself. Do you guys think this is possible to do?</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Embed-R-plots-in-C--tp24834063p24834063.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24825569</id>
	<title>Problem in calling/getting responce from NLS using VB.NET</title>
	<published>2009-08-05T05:01:34Z</published>
	<updated>2009-08-05T05:01:34Z</updated>
	<author>
		<name>Javed Chaudhari</name>
	</author>
	<content type="html">Hi All
&lt;br&gt;&lt;br&gt;Please see the code below.
&lt;br&gt;&lt;br&gt;I am trying to call NLS method in R using VB.NET with the below shown arguments.
&lt;br&gt;I have created a Data using CBIND and then Writing and Reading the CSV File.
&lt;br&gt;&lt;br&gt;When I execute the NLS Call, it gives me the Error &amp;quot;Object is static; operation not allowed (Exception from HRESULT: 0x8004000B (OLE_E_STATIC))&amp;quot; (-2147221493).
&lt;br&gt;&lt;br&gt;V1, V2 , ...V5 are column names in the CSV file generated.
&lt;br&gt;&lt;br&gt;Any help will be really appreciated.
&lt;br&gt;&lt;br&gt;RCon.SetSymbol(&amp;quot;Df&amp;quot;, Df)
&lt;br&gt;RCon.Evaluate(&amp;quot;Df&amp;lt;-cbind(Ri,E0,Emax,ED50,Lamda,Dosage,Epsilon)&amp;quot;)
&lt;br&gt;outputDf = RCon.GetSymbol(&amp;quot;Df&amp;quot;)
&lt;br&gt;listDf.Add(outputDf)
&lt;br&gt;&lt;br&gt;RCon.SetSymbol(&amp;quot;DD&amp;quot;, DD)
&lt;br&gt;RCon.EvaluateNoReturn(&amp;quot;write.table(Df,file=&amp;quot;&amp;quot;C:/Javed/data.csv&amp;quot;&amp;quot;,append=FALSE,quote=TRUE,sep=&amp;quot;&amp;quot;,&amp;quot;&amp;quot;,eol=&amp;quot;&amp;quot;\n&amp;quot;&amp;quot;,na=&amp;quot;&amp;quot;NA&amp;quot;&amp;quot;,dec=&amp;quot;&amp;quot;.&amp;quot;&amp;quot;,row.names=TRUE,col.names=NA)&amp;quot;)
&lt;br&gt;&lt;br&gt;RCon.Evaluate(&amp;quot;DD&amp;lt;-read.table(&amp;quot;&amp;quot;C:/Javed/data.csv&amp;quot;&amp;quot;,header=T,sep=&amp;quot;&amp;quot;,&amp;quot;&amp;quot;)&amp;quot;)
&lt;br&gt;&lt;br&gt;RCon.Evaluate(&amp;quot;RRR&amp;lt;-nls(V1~V2+((V6^V5)*V3)/((V4^V5)+(V6^V5)),data=DD,start=c(V3=-44,V2=-6,V4=1.5,V5=1.2))&amp;quot;)
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Javed Chaudhari</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-in-calling-getting-responce-from-NLS-using-VB.NET-tp24825569p24825569.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24823856</id>
	<title>Problem in calling data.frame from VB.NET</title>
	<published>2009-08-05T02:48:11Z</published>
	<updated>2009-08-05T02:48:11Z</updated>
	<author>
		<name>Javed Chaudhari</name>
	</author>
	<content type="html">Hi All
&lt;br&gt;&lt;br&gt;Please find the below code.
&lt;br&gt;&lt;br&gt;I have outputE0 and outputEmax as 2-D Arrays returned from R (equivalent to matrices in R terms) with 50 rows and 1 column.
&lt;br&gt;&lt;br&gt;Now when I am trying to create data frame using (data.frame syntax in R), I am getting only 1 single row with 2 columns instead of 50 rows.Ideally data.frame should combine both the matrices and give 1 single datastructure (matrix) with 50 rows and 2 columns.
&lt;br&gt;&lt;br&gt;Please share what is the problem or resolution. 
&lt;br&gt;&lt;br&gt;Dim E0 As Object(,)
&lt;br&gt;Dim Emax As Object(,)
&lt;br&gt;&lt;br&gt;Dim outputE0 As Object
&lt;br&gt;Dim outputEmax As Object
&lt;br&gt;&lt;br&gt;Dim listE0 As New List(Of Double(,))
&lt;br&gt;Dim listEmax As New List(Of Double(,))
&lt;br&gt;&lt;br&gt;RCon.SetSymbol(&amp;quot;E0&amp;quot;, E0)
&lt;br&gt;RCon.Evaluate(&amp;quot;E0&amp;lt;-matrix(rnorm(50,-1,10),ncol=1)&amp;quot;)
&lt;br&gt;outputE0 = RCon.GetSymbol(&amp;quot;E0&amp;quot;)
&lt;br&gt;listE0.Add(CType(outputE0, Double(,)))
&lt;br&gt;&lt;br&gt;RCon.SetSymbol(&amp;quot;Emax&amp;quot;, Emax)
&lt;br&gt;RCon.Evaluate(&amp;quot;Emax&amp;lt;-matrix(rnorm(50,-1,10),ncol=1)&amp;quot;)
&lt;br&gt;outputEmax = RCon.GetSymbol(&amp;quot;Emax&amp;quot;)
&lt;br&gt;listEmax.Add(CType(outputEmax, Double(,)))
&lt;br&gt;&lt;br&gt;RCon.SetSymbol(&amp;quot;Df&amp;quot;, Df)
&lt;br&gt;RCon.Evaluate(&amp;quot;Df&amp;lt;-data.frame(E0,Emax)&amp;quot;)
&lt;br&gt;outputDf = RCon.GetSymbol(&amp;quot;Df&amp;quot;)
&lt;br&gt;listDf.Add(outputDf)
&lt;br&gt;&lt;br&gt;Thanks
&lt;br&gt;&lt;br&gt;Javed</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Problem-in-calling-data.frame-from-VB.NET-tp24823856p24823856.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24389020</id>
	<title>R-function is calculated four-times when starting with RExcel</title>
	<published>2009-07-08T03:29:10Z</published>
	<updated>2009-07-08T03:29:10Z</updated>
	<author>
		<name>Corinne D</name>
	</author>
	<content type="html">Hi everyone, 
&lt;br&gt;&lt;br&gt;I have the following problem: 
&lt;br&gt;&lt;br&gt;I'm starting an R-function via VBA from Excel using the following code: 
&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; RInterface.StartRServer
&lt;br&gt;&amp;nbsp; &amp;nbsp; RInterface.RRun &amp;quot;source(&amp;quot; &amp; r_source &amp; &amp;quot;)&amp;quot;
&lt;br&gt;&amp;nbsp; &amp;nbsp; RInterface.GetArray &amp;quot;function1(&amp;quot; &amp; x1 &amp; &amp;quot;,&amp;quot; &amp; x2 &amp; &amp;quot;,&amp;quot; x3 &amp; &amp;quot;,&amp;quot; x4 &amp; &amp;quot;)&amp;quot;, Range(myRange)
&lt;br&gt;&amp;nbsp; &amp;nbsp; RInterface.StopRServer
&lt;br&gt;&lt;br&gt;&amp;nbsp; &amp;nbsp; ...
&lt;br&gt;&lt;br&gt;where &amp;quot;r_source&amp;quot; contains the path to the R-script where &amp;quot;function1&amp;quot; is defined and the values for &amp;quot;x1&amp;quot;, &amp;quot;x2&amp;quot;, etc. are defined earlier in the VBA code. &amp;quot;function1&amp;quot; prints a matrix which is then writen into a sheet in my Excel file (in myRange). 
&lt;br&gt;&lt;br&gt;When I define &amp;quot;x1&amp;quot;, &amp;quot;x2&amp;quot;, etc. directely in R and then evaluate &amp;quot;function1(x1, x2, x3, x4)&amp;quot; in R, the results are (as wished) only calculated once. But if I start it from Excel using the VBA code above, the results are calculated 4-times before the matrix is written into Excel. Which of course is not very time efficient... 
&lt;br&gt;&lt;br&gt;Does anyone have an idea how to solve this problem? That would be great!
&lt;br&gt;&lt;br&gt;Thanks a lot in advance! Greets, 
&lt;br&gt;Corinne</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/R-function-is-calculated-four-times-when-starting-with-RExcel-tp24389020p24389020.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24047652</id>
	<title>Re: How to convert R variable to Excel variable &amp; vice versa</title>
	<published>2009-06-15T21:52:08Z</published>
	<updated>2009-06-15T21:52:08Z</updated>
	<author>
		<name>puspendra</name>
	</author>
	<content type="html">Please find the attached document, perhaps it might help..............
&lt;br&gt;&lt;a href=&quot;http://old.nabble.com/file/p24047652/RExcel.doc&quot; target=&quot;_top&quot;&gt;RExcel.doc&lt;/a&gt;&lt;img class='smiley' src='http://old.nabble.com/images/smiley/anim_claps.gif' /&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-convert-R-variable-to-Excel-variable---vice-versa-tp21173141p24047652.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-24031982</id>
	<title>Re: How to convert R variable to Excel variable &amp; vice versa</title>
	<published>2009-06-15T03:06:54Z</published>
	<updated>2009-06-15T03:06:54Z</updated>
	<author>
		<name>ryusuke</name>
	</author>
	<content type="html">I would like to convert some codes from R to Excel as well, anyone can help????</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-convert-R-variable-to-Excel-variable---vice-versa-tp21173141p24031982.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-21173141</id>
	<title>How to convert R variable to Excel variable &amp; vice versa</title>
	<published>2008-12-26T02:17:07Z</published>
	<updated>2008-12-26T02:17:07Z</updated>
	<author>
		<name>puspendra</name>
	</author>
	<content type="html">Hi
&lt;br&gt;&amp;nbsp; I want to know some code about Rexcel. Please if you can respond, it will be great helpful for me. Problem is that the conversion of Excel (type of) variable to R (type of) variable. Suppose I have written the code in VBA.
&lt;br&gt;&amp;nbsp;
&lt;br&gt;Option Base 1
&lt;br&gt;Sub test()
&lt;br&gt;Dim x(5) As Integer
&lt;br&gt;x(1) = 10
&lt;br&gt;x(2) = 20
&lt;br&gt;x(3) = 30
&lt;br&gt;x(4) = 40
&lt;br&gt;x(5) = 50
&lt;br&gt;&lt;br&gt;RInterface.StartRServer
&lt;br&gt;&amp;nbsp; &amp;nbsp; 
&lt;br&gt;RInterface.RRun &amp;quot;Nt&amp;lt;- x[3]&amp;quot; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'I want to store 3rd element of an array by using R 
&lt;br&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; '&amp; also if possible I want to show this value by msgbox
&lt;br&gt;RInterface.StopRServer
&lt;br&gt;End Sub
&lt;br&gt;&amp;nbsp;
&lt;br&gt;I think x() array is an Excel type and we will have to convert it to R type of array i.e. vector. The question is How?
&lt;br&gt;and again I want to perform some action on 'Nt' through excel VBA, then again we will have to convert this R type of Variable to Excel type.
&lt;br&gt;Am i right?
&lt;br&gt;Please suggest me some way how to do these things.</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/How-to-convert-R-variable-to-Excel-variable---vice-versa-tp21173141p21173141.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-19319849</id>
	<title>R-(D)COM, using custom R functions from Matlab</title>
	<published>2008-09-04T13:59:32Z</published>
	<updated>2008-09-04T13:59:32Z</updated>
	<author>
		<name>Smjorvi</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;&lt;br&gt;I'm a very new Matlab user, and a 3-year user of R.
&lt;br&gt;&lt;br&gt;I need to run custom R functions from Matlab. &amp;nbsp;So far I have been able to:
&lt;br&gt;&lt;br&gt;open an R session from Matlab, write R functions using, for example, evalR('test = function(x){ x + 2}'). &amp;nbsp;However, I need to use the R source() command from Matlab to access longer custom R functions (those that will not fit on one line), but when I try:
&lt;br&gt;&lt;br&gt;evalR('source(''test.r'')') &amp;nbsp;for example, I get the following error...
&lt;br&gt;&lt;br&gt;??? Error using ==&amp;gt; evalR at 58
&lt;br&gt;Problem evaluating command source('test.r').
&lt;br&gt;Invoke Error, Dispatch Exception: Object is static; operation not allowed
&lt;br&gt;&lt;br&gt;Any insight in to this problem would be appreciated.
&lt;br&gt;&lt;br&gt;Also, I was wondering how (at the Matlab command prompt) to extend a single command across two or more lines so as to be able to write longer R functions using the evalR link from the command line?
&lt;br&gt;&lt;br&gt;Thanks for the help!
&lt;br&gt;&lt;br&gt;Smjorvi</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/R-%28D%29COM%2C-using-custom-R-functions-from-Matlab-tp19319849p19319849.html" />
</entry>

<entry>
	<id>tag:old.nabble.com,2006:post-13775606</id>
	<title>Automation R on VB .Net</title>
	<published>2007-11-15T08:57:20Z</published>
	<updated>2007-11-15T08:57:20Z</updated>
	<author>
		<name>tintin_et_milou</name>
	</author>
	<content type="html">Hello,
&lt;br&gt;I want to automize the calling of a function on VB for different paths. The library of R do not appear on VB. Someone could help me please? 
&lt;br&gt;</content>
	<link rel="alternate" type="text/html" href="http://old.nabble.com/Automation-R-on-VB-.Net-tp13775606p13775606.html" />
</entry>

</feed>
