This RExcel interface will help you if you tend to work with people whose knowledge of R is weak but you want them to be able to use R-scripts that you share with them.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
install.packages(c("rscproxy","rcom"),repos="http://rcom.univie.ac.at/download",lib=.Library) | |
installstatconnDCOM() | |
library(rcom) | |
comRegisterRegistry() | |
download.file(url="http://rcom.univie.ac.at/download/RExcel.distro/RExcelInst.latest.exe",mode="wb",destfile="Rexcel.exe") | |
system("Rexcel.exe") | |
install.packages(c("Rcmdr","RcmdrPlugin.HH"),lib=.Library,dep=TRUE) | |
library(Rcmdr) |
And the result: A new toolset complete with R_menus under the Addins Ribbon in Excel.
More customisations are described on univie.ac.at. Other
ways for working with R and Excel can be found here http://www.r-bloggers.com/a-million-ways-to-connect-r-and-excel/
No comments:
Post a Comment