Sam Rushing's Python extension 'calldll' will supposedly give me access to any DLL, and presumably R.DLL in particular, from Python. I have no experience manipulating DLLs as yet. I am learning Python. I can't find any simple step-by-step instructions on how to get done what I want to do. Does anyone have experience with this? Is there a better way? Of course, one can use Rterm with DOS piping commands. -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Sorry for not providing appropriate detail. I am working in Windows 98. It looked to us like RSPython was Unix. DF rossini at blind globe.net To: David Farrar/DC/USEPA/US at EPA (A.J. cc: r-help at hypatia.math.ethz.ch Rossini) Subject: Re: [R] driving R from Python (calldll?) 01/23/2002 05:26 PM Please respond to rossini>>>>> "FD" == Farrar David <Farrar.David at epamail.epa.gov> writes:FD> Sam Rushing's Python extension 'calldll' will supposedly give FD> me access to any DLL, and presumably R.DLL in particular, from FD> Python. I have no experience manipulating DLLs as yet. I am FD> learning Python. I can't find any simple step-by-step FD> instructions on how to get done what I want to do. Does FD> anyone have experience with this? Is there a better way? Of FD> course, one can use Rterm with DOS piping commands. The RSPython package works extremely well. Duncan, did you ever incorporate Greg Warnes' fixes for formulas? best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington Biostatistics rossini at u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org -------------- http://software.biostat.washington.edu/ ---------------- FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX --- I'm 40% time until March 1st. Try email the other 3 days.... ----- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
>>>>> "FD" == Farrar David <Farrar.David at epamail.epa.gov> writes:FD> Sam Rushing's Python extension 'calldll' will supposedly give FD> me access to any DLL, and presumably R.DLL in particular, from FD> Python. I have no experience manipulating DLLs as yet. I am FD> learning Python. I can't find any simple step-by-step FD> instructions on how to get done what I want to do. Does FD> anyone have experience with this? Is there a better way? Of FD> course, one can use Rterm with DOS piping commands. The RSPython package works extremely well. Duncan, did you ever incorporate Greg Warnes' fixes for formulas? best, -tony -- A.J. Rossini Rsrch. Asst. Prof. of Biostatistics U. of Washington Biostatistics rossini at u.washington.edu FHCRC/SCHARP/HIV Vaccine Trials Net rossini at scharp.org -------------- http://software.biostat.washington.edu/ ---------------- FHCRC: M: 206-667-7025 (fax=4812)|Voicemail is pretty sketchy/use Email UW: Th: 206-543-1044 (fax=3286)|Change last 4 digits of phone to FAX --- I'm 40% time until March 1st. Try email the other 3 days.... ----- -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
On Wed, 23 Jan 2002 Farrar.David at epamail.epa.gov wrote:> Sam Rushing's Python extension 'calldll' will supposedly give me access > to any DLL, > and presumably R.DLL in particular, from Python. I have no experience > manipulating DLLs as > yet. I am learning Python. I can't find any simple step-by-step > instructions on how > to get done what I want to do. Does anyone have experience with this? > Is there a > better way? Of course, one can use Rterm with DOS piping commands.Presumably this is for Windows. You can't use R.dll in isolation. What you can do is the use the DCOM interface written by Thomas Baier that you will find on CRAN, which provides a completely standard Windows interface that I am sure Python can talk to. My suspicion is that this would be much easier than porting RSPython to Windows, because no work would be involved on the R side. Conversely, it will give you less, but you don't say anything about `to get done what I want to do'. BTW `Of course, one can use Rterm with DOS piping commands' isn't really true. Rterm is a Windows program, not a DOS program. You can certainly do it on Windows NT/2000/XP, but pipes are limited on 95/98/ME, and DOS can't pipe to Windows programs. Guido and I failed to get this sort of thing to work from R for pipe connections under 95/98/ME, and found lots of things which did not work as documented nor as on NT in the process. Also, Perl's system() has problems with redirection and pipes on 95/98/ME. So beware! -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
Thanks for your time. We'll look into Baier's DCOM interface. What I am doing at the moment is to have Python write an R program that does some curve fits, run the program using Rterm, piping the output to a disk file, then parse the output with Python. If there is some tool I can easily use to reduce the complexity of the program, then I would consider using it. DF Prof Brian Ripley To: David Farrar/DC/USEPA/US at EPA <ripley at stats cc: r-help at hypatia.math.ethz.ch .ox.ac.uk> Subject: Re: [R] driving R from Python (calldll?) 01/24/2002 02:35 AM On Wed, 23 Jan 2002 Farrar.David at epamail.epa.gov wrote:> Sam Rushing's Python extension 'calldll' will supposedly give meaccess> to any DLL, > and presumably R.DLL in particular, from Python. I have no experience > manipulating DLLs as > yet. I am learning Python. I can't find any simple step-by-step > instructions on how > to get done what I want to do. Does anyone have experience with this? > Is there a > better way? Of course, one can use Rterm with DOS piping commands.Presumably this is for Windows. You can't use R.dll in isolation. What you can do is the use the DCOM interface written by Thomas Baier that you will find on CRAN, which provides a completely standard Windows interface that I am sure Python can talk to. My suspicion is that this would be much easier than porting RSPython to Windows, because no work would be involved on the R side. Conversely, it will give you less, but you don't say anything about `to get done what I want to do'. BTW `Of course, one can use Rterm with DOS piping commands' isn't really true. Rterm is a Windows program, not a DOS program. You can certainly do it on Windows NT/2000/XP, but pipes are limited on 95/98/ME, and DOS can't pipe to Windows programs. Guido and I failed to get this sort of thing to work from R for pipe connections under 95/98/ME, and found lots of things which did not work as documented nor as on NT in the process. Also, Perl's system() has problems with redirection and pipes on 95/98/ME. So beware! -- Brian D. Ripley, ripley at stats.ox.ac.uk Professor of Applied Statistics, http://www.stats.ox.ac.uk/~ripley/ University of Oxford, Tel: +44 1865 272861 (self) 1 South Parks Road, +44 1865 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595 -.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.- r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html Send "info", "help", or "[un]subscribe" (in the "body", not the subject !) To: r-help-request at stat.math.ethz.ch _._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._