rexcel

Error with Rexcel when starting up Excel

走远了吗. 提交于 2019-11-28 12:59:48
问题 Today something happened (never had this problem before) when I start up Excel workbook where I use Rexcel. And then there are some more errors... Everything worked properly before.. Does anyone have an idea about what the problem could be? The other strange thing is that after that the Rapply and so on works.. But I get errors again when I close workbook. So the problem appears when I startR from Rexcel meny in Excel. EDIT: Thanks to flodel for his answer. But is it not possible to run the

Run R script in Excel

丶灬走出姿态 提交于 2019-11-28 05:58:31
问题 There isn't a lot of information on how to do this. I tried to study a blog online and implemented the following code in VBA(with the path of the R file):- Sub RunRscript() 'runs an external R code through Shell 'The location of the RScript is 'C:\R_code' 'The script name is 'hello.R' Dim shell As Object Set shell = VBA.CreateObject("WScript.Shell") Dim waitTillComplete As Boolean: waitTillComplete = True Dim style As Integer: style = 1 Dim errorCode As Integer Dim path As String path =