Thanks. Are there any plans to address this?
On Tue, Nov 11, 2008 at 12:47 PM, Prokaj Vilmos <[EMAIL PROTECTED]> wrote: > I'm afraid at the moment it is not possible. In the first case the com > method fills the path value into an [out] parameter of the method, which is > discarded by the C function com_invoke. One possibility would if the [out] > parameters (or all of them) are attached as an attribute to the return > value. It requires the maintainer work. > > In the second case the type of the returned variant is VT_RECORD (36) which > is not handled by rscproxy, again maintainer work is required. > > Gabor Grothendieck írta: >> >> I am trying to replicate this Python/win32com code to access MiKTeX >> using R/rcom: >> >> http://codeliberates.blogspot.com/2008/06/automating-miktex-using-python-win32com.html >> Is this possible using rcom? How? See my attempt below. >> >> Python/win32com: >> >> >>>>> >>>>> import win32com.client as w >>>>> c = w.Dispatch("MiKTeX.Session") >>>>> path = '' >>>>> print c.FindFile("xunicode.sty", path) >>>>> >> >> (True, u'C:\\Program Files\\MiKTeX >> 2.7\\tex\\xelatex\\xunicode\\xunicode.sty') >> >>>>> >>>>> print c.GetMiKTeXSetupInfo().installRoot >>>>> >> >> C:\Program Files\MiKTeX 2.7 >> >> R/rcom: >> >> >>> >>> library(rcom) >>> mik <- comCreateObject("MiKTeX.Session") >>> path <- "" >>> comInvoke(mik, "FindFile", "xunicode.sty", "path") >>> >> >> [1] TRUE >> >>> >>> comInvoke(mik, "FindFile", "xunicode.sty", path) >>> >> >> [1] TRUE >> >>> >>> info <- comInvoke(mik, "GetMiKTeXSetupInfo") >>> info >>> >> >> NULL >> _______________________________________________ >> Rcom-l mailing list >> Rcom-l@mailman.csd.univie.ac.at >> http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l >> More information (including a Wiki) at http://rcom.univie.ac.at >> >> __________ ESET Smart Security - Vírusdefiníciós adatbázis: 3557 >> (20081026) __________ >> >> Az üzenetet az ESET Smart Security ellenõrizte. >> >> http://www.eset.hu >> >> >> > > > -- > Vilmos Prokaj > Eötvös Loránd University, > Department of Probablity and Statistics > Pázmány P. s. 1/C > Budapest, 1117 > Hungary > > e-mail:[EMAIL PROTECTED] > > _______________________________________________ > Rcom-l mailing list > Rcom-l@mailman.csd.univie.ac.at > http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l > More information (including a Wiki) at http://rcom.univie.ac.at > _______________________________________________ Rcom-l mailing list Rcom-l@mailman.csd.univie.ac.at http://mailman.csd.univie.ac.at/mailman/listinfo/rcom-l More information (including a Wiki) at http://rcom.univie.ac.at