Displaying 20 results from an estimated 2000 matches similar to: "Problems with DCOM client packages under R 2.0"
2003 Jun 30
2
R as COM client (rather than server)
Hello all
Can R be used as a COM client (rather than as a COM server)? The following
(Splus) code shows the sort of thing I'd like to do:
pMIM <- create.ole.object("mim31.Server")
NoOutputLines <- call.ole.method(pMIM, "SendCmdLine", "show w")
for (i in 1:NoOutputLines) show(call.ole.method(pMIM,
"GetOutputLine"))
release.ole.object(pMIM)
2005 Oct 17
1
COM objects with early bindings in R
Dear list member,
I am using the packages RDCOMClient and SWinTypeLibs and try to import a COM
object (created in Delphi) in R that is of type 'early binding' instead of
late 'late binding'. Is there a possibility to do this in R?
Currently, the following returns an error message:
l1 = LoadTypeLib("c:\\Programme\\INVESCO\\QaCalendar\\Calendar.dll")
2012 Jul 23
1
R2wd package wdGet() error
I am having trouble using the R2wd package. The last time I used it
successfully, I was running an earlier version of R and an earlier version
of Word with an earlier Windows OS. I'm not sure which if any of these
changes might be contributing to the problem. Right now I'm using
R version 2.15.0 (2012-03-30) for Windows
MS Word 2010 version 14.0.6112.5000 (32-bit)
2009 Feb 11
0
Beginner question about an Error message when loading SWinTypeLibs package
Hi List,
I am trying to learn something about the exchange facilities between R and Windows Application with the RDCOMClient package from (http://www.omegahat.org/RDCOMClient/) and I have faced 2 problems:
1. I could not follow the link for the binary version of SWinTypeLibs package on the site, (as it has given me a restricted permission message), but I downloaded it by searching it on google
2012 Mar 31
3
clear console
hi,
I use R - 2.15(32bit), and want to make a code to clear a console.
Actually, I used to run following code to do that but after update the
version of R from 2.14 to 2.15, it doesn't work.
cls <- function (t) {
require(RDCOMClient)
wsh <- COMCreate("Wscript.Shell")
wsh$SendKeys("\f")
invisible(wsh)
}
cls()
or
cls <-
2010 Aug 13
1
RDCOMClient interface - problems setting a variable
I try to produce and modify shapes in a PowerPoint presentation but run into a difficulty setting a variable.
library(RDCOMClient) # load RDCOMClient package
library(SWinTypeLibs) # package SWinTypeLibs from Omegahat to access information about COM libraries
ppt = COMCreate("PowerPoint.Application") # create a ppt COM
ppt[["Visible"]] <- TRUE # set COM
2005 Nov 06
1
R (2.2.0), R-DCOM and Delphi
In response to a few private e-mails, here a summary of using Delphi, R-DCOM
and R 2.2.0
1) As Earl Glynn noted
( http://finzi.psych.upenn.edu/R/Rhelp02a/archive/50705.html ),
there were a few paths specific to my installation in
http://www.menne-biomed.de/download/RDComDelphi.zip
leading to path errors on compilation. Hopefully, this has been corrected in
the new zip file.
2) Always check if
2003 Oct 22
2
Excel to R
I have Excel files containing data that I would like to move to R.
They are in the standard form of a one row header followed by
rows of data, one record per row EXCEPT that there are a few
rows of comments before the header. The number of rows of comments
varies. For Excel files of this form without comments I have had
success with:
require(RODBC)
z <-
2012 Mar 26
1
What does "package 'RDCOMClient' is not installed for 'arch=x64' " exactly mean?
Hi,
I'm trying to use the excel.link package to write data to excel
spreadsheets. I've installed the RDCOMClient package as required but get the
error:
package 'RDCOMClient' is not installed for 'arch=x64'
I'm on Rx64 2.13.0.
I assume it means the RDCOMClient package does not work on the x64 version.
I've tried to see if there does a x64 RDCOMClient package
2004 Oct 19
1
RDCOMClient under R2.0.0 - "not a valid package"
Dear r-help,
Both 'omega-devel@omegahat.org' and 'duncan@research.bell-labs.com' appear
to be bouncing with 'user unknown' so trying r-help ....
[ Btw, "mailing lists" link on omega page is returning "mailman CGI error".
]
> > require("RDCOMClient")
> Loading required package: RDCOMClient
> Error in library(package,
2007 Sep 26
3
wordReport
?wordReport gives a lot of information, but I think it makes us wish for
more :-)
Where can I find all the ways to write Word documents using R?
Namely:
(1) is there any way to open a new document and save it automatically?
The sequence:
WordOpen("new_file.doc"); WordInsertText("R rulez!\n"); WordExit()
will prompt for the Yes/No/Cancel prompt, and if I answer
2004 Nov 30
1
Using mimR
Hi,
I am trying to use the mimR Package. According to its help pages it
needs the RDCOMClient package to run.
When I try to evaluate a model I get
> m.sat<-mim("..",data=gm.dat)
Error in mim.cmd("clear; clear output") : couldn't find function "COMCreate"
> m2.sat<-emfit(m.sat)
Error in toMIM(mim$data) : Object "m.sat" not found
>
2009 Jul 08
1
RDCOMClient: how to close Excel process?
Hi,
I?m using R package RDCOMClient (http://www.omegahat.org/RDCOMClient/)
to retrieve data from MS Excel workbook. I?m using the code below to
count the number of sheets in the workbook and then loop the data from
sheets in to a list.
############# R code ###################
library(gdata)
library(RDCOMClient)
xl <- COMCreate("Excel.Application")
sh <-
2007 Oct 10
2
slow load() in R2.6.0
I'm encountering excruciatingly slow load times for character vectors in
R 2.6.0-- up to 30sec for a 15K file that contains a no-attributes
character vector of length ~1e4 and object size ~0.5MB. In R 2.5.1,
repeated loads of the same set of files are near-instantaneous.
The problem is proving tricky to reproduce consistently from scratch, so
I have attached the 3 files used in the examples
2009 Jul 09
1
R-help Digest, Vol 77, Issue 9
Hi,
This may be due to several reasons. That I can think about:
1) Ensure you close *all* possibly open workbooks:
nBooks <- xl[["Workbooks"]]$Count();
for (i in seq_len(nBooks))
xl[["Workbooks"]]$item(i)$Close(SaveChanges=FALSE);
2) The excel application reference does not seem to be really released until the garbage collector runs. So this may help:
xl$Quit();
2004 Mar 03
4
How to read Excel file and access the data item?
In R, How to read Excel file and access the data item?
Thank you.
---------------------------------
[[alternative HTML version deleted]]
2003 May 22
0
4 packages for Windows users
I have finally got around to putting 4 packages
on the Omegahat web site for use on Microsoft Windows.
The packages are:
RDCOMClient - interactive, dynamic access to arbitrary (D)COM objects
from within R that allows one to create COM objects
from R and call their methods and access their properties without
the need to compile any code specific to the COM object.
RDCOMServer - facility for
2006 Apr 19
1
Help with package RDCOMClient
Fresh Download of the newest R for windows
R : Copyright 2005, The R Foundation for Statistical Computing Version
2.2.1 (2005-12-20 r36812) ISBN 3-900051-07-0
R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.
Natural language support but
2009 May 03
2
clear screen?
I?ve been using this routine for several years. I?m sorry, I don?t remember
where I got it. It works as it should, viz. it blanks the R console. But
it requires package rcom and now that requires rscproxy.
cls <-
function ()
{
require(rcom)
wsh <- comCreateObject("Wscript.Shell")
comInvoke(wsh, "SendKeys", "\f")
invisible(wsh)
}
> cls()
2006 Mar 11
6
is there a formatted output in R?
something like "sprintf" in C?
so I can do:
print(sprintf("the correct result is %3.4f\n", myresult));
-------
Also, I am desperately looking for a "clear console screen" function in
R...
thanks a lot!
[[alternative HTML version deleted]]