Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can i get a 'rcom' package?

When I tried executing this
install.packages("rcom")
I got warning
package ‘rcom’ is not available (for R version 3.1.2)

I also tried this
install.packages(c(, "rcom"), repos = "http://rcom.univie.ac.at/download", lib=.Library)
and i got this as warnig
Warning: unable to access index for repository http://rcom.univie.ac.at/download/bin/windows/contrib/3.1
Warning message:
package ‘rcom’ is not available (for R version 3.1.2)

like image 668
rehan ali Avatar asked Apr 03 '15 11:04

rehan ali


2 Answers

Just run that command:

install.packages("RDCOMClient", repos = "http://www.omegahat.net/R", type = "source")

Source:

http://www.omegahat.net/RDCOMClient/

like image 61
Jason V Avatar answered Oct 04 '22 23:10

Jason V


Assuming you have a suitable version of R installed, the following steps are necessary to install RExcel and the infrastructure. You need to be logged into Windows with administrator privileges to do this!

It is very important that the installed version of R wrote its entry to the registry. If you have R installed without this registry entry, RExcel will not work. You need to reinstall R in that case. When reinstalling R all the packages will be retained, but any changes in the system wide profile (set in etc/Rprofile.site) will be lost.

You also need to follow these instructions if you upgrade R, i.e. you install a new release of R after you have installed RExcel. Download the statconn DCOM server and execute the program you downloaded Start R as administrator (on Windows 7 and later you need to right-click the R icon and click the corresponding item)

In R, run the following commands (you must start R as administrator to do this):

options(install.packages.check.source = "no")

install.packages(c("rscproxy","rcom"),repos="http://www.autstat.com/download",
                 lib=.Library,type="win.binary")

library(rcom)

comRegisterRegistry()

Now you have rcom installed, but RExcel is not installed yet. To install RExcel for 32bit Excel: download the RExcel installer and run this installation program. To install RExcel for 64bit Excell: download the RExcel installer and run this installation program. Installing RExcel this way will set the background server of R as the default R server for RExcel. You can change this in the configuration settings in R. If you want to set the foreground server as the default site wide server, there is an appropriate option in one of the dialogs of the installation.

Source

like image 33
Saeid Kadkhodaei Avatar answered Oct 05 '22 00:10

Saeid Kadkhodaei