I am trying to get the rcom package for R working. It seems to have installed ok:
> install.packages("rcom"); --- Please select a CRAN mirror for use in this session --- trying URL 'http://mira.sunsite.utk.edu/CRAN/bin/windows/contrib/2.9/rcom_2.2-1.zip' Content type 'application/zip' length 204632 bytes (199 Kb) opened URL downloaded 199 Kb package 'rcom' successfully unpacked and MD5 sums checked The downloaded packages are in C:\Users\solomon\AppData\Local\Temp\Rtmpzb5oi4\downloaded_packages updating HTML package descriptions
Then I try to run something:
>comCreateObject("Excel.Application"); Error: could not find function "comCreateObject"
What am I missing, the manual tells me that comCreateObject is the appropriate command. However, the manual's version is somewhat old. Anyone else have any insights?
R is one of the standard tools that is being used in e-commerce. Since these internet-based companies have to deal with various forms of data, structured and unstructured, as well as from varying data sources like spreadsheets and databases (SQL & NoSQL), R proves to be an effective choice for these industries.
R offers a wide variety of statistics-related libraries and provides a favorable environment for statistical computing and design. In addition, the R programming language gets used by many quantitative analysts as a programming tool since it's useful for data importing and cleaning.
\r is a carriage return which often means that the cursor should move to the leftmost column, while \n is a line feed which moves the cursor to the next line.
R can be difficult for beginners to learn due to its non-standardized code. Python is usually easier for most learners and has a smoother linear curve. In addition, Python requires less coding time since it's easier to maintain and has a syntax similar to the English language.
I can see a couple of potential problems here - rcom has a weird installation.
Did you load the package - that is, run library(rcom)
after installing it? I know, I know - but I forget that step all the time, and it would definitely give you the "could not find function" error.
Did you run the installstatconnDCOM()
command? I almost didn't notice it telling me to do this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With