Re: [Rcom-l] MiKTeX.session
Gabor, Gabor Grothendieck schrieb: Thanks. Are there any plans to address this? Unfortunately not yet. Not many (disp)interfaces are using out-only parameters and VT_RECORD. I've added both features to my list, though, but currently I cannot provide a date for this to become available. Thomas ___ 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
Re: [Rcom-l] MiKTeX.session
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
Re: [Rcom-l] MiKTeX.session
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