Skip to content

Some questions about R-(D)COM

6 messages · virgil@matheron.estadi.uv.es, Brian Ripley, Philippe GROSJEAN +1 more

#
Hello Thomas,

 I am writting to you because I have some questions about R-(D)COM. The
first one is whether it can compiled using the MINGW C compiler, that
is recomended by B. Ripley to compile R under Windows.

The other questions are:

- How can I open/close connections directly from C/C++?
- Do you know about a free Visual Basic compiler?


The final purpose of using R-(D)COM is to create a link between ArcInfo
and R, in the same way 'S-Plus for ArcView' does.

 Thank you in advice.

  Regards,

  Virgilio

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 Tue, 3 Jul 2001 virgil at matheron.estadi.uv.es wrote:

            
Um. rproxy.dll, the R side, *is* compiled under mingw.  It's not clear to
me why one would want to compile the StatConnector under mingw, but Thomas
said he thought it may be possible.  One issue is the quality of
mingw headers.  As Thomas (and I) have VC++6.0, it has not been an issue.
Yes, because R itself does from C code.  It's not set up to be easy,
though, and the low-level interface in connections.c is mainly not exposed
(static routines).  But you can call do_url, do_open, do_close and so on
from your own C code.
No. There are learning editions free with various books, but they
have limited compilation facilities.  The Learning Edition sold here
is definitely able to work with R-(D)COM, as my wife uses that one.
#
No. But VBScript is available for free (if you have MS Internet Explorer 4
or above, it is already installed on your system), it allow to "script" DCom
objects from the console, or from a web page. If you have MS Office, you can
also use VBA (Visual Basic for Application) that allow to interact with
R-DCom (see R-Excel in the CRAN site for an example).
Best regards,

Philippe Grosjean


...........]<(({?<...............<?}))><...............................
 ) ) ) ) )	 __               	 __
( ( ( ( ( 	|__)              	|  _
 ) ) ) ) )	|   hilippe       	|__)rosjean
( ( ( ( ( 	Marine Biol. Lab., ULB, Belgium
 ) ) ) ) )	                  	 __
( ( ( ( ( 	|\  /|            	|__)
 ) ) ) ) )	| \/ |ariculture &	|__)iostatistics
( ( ( ( (
 ) ) ) ) )	e-mail: phgrosje at ulb.ac.be or phgrosjean at sciviews.org
( ( ( ( ( 	SciViews project coordinator (http://www.sciviews.org)
 ) ) ) ) )      tel: 00-32-2-650.29.70 (lab), 00-32-2-673.31.33 (home)
( ( ( ( (
 ) ) ) ) )      "I'm 100% confident that p is between 0 and 1"
( ( ( ( (                                  L. Gonick & W. Smith (1993)
 ) ) ) ) )
......................................................................

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
Someone wrote:
There was a version called Visual Basic 5 Control Creation Edition which
was free. You might be able to get it from the M$ website. I remember
that is was on a lot of cover CDs from the glossy PC mags. You might be
able to find a copy about or go through back issue departments. I do not
have a copy here but I think it could create an .EXE but it needed the
software to be installed to run the .EXE not just the runtime library. I
might be wrong.

Mark


--
Mark Myatt


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._
#
The idea is to develop free software using free tools, and I think VC++6.0
isn't. And when I say free I mean software licensed under the GPL or
another license like that...

Besides, I have read (in Colin Peter's web page) that the mingw can't use
VC++ DLLs, but I have not tested this myself. IS it true?

Virgilio

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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 Tue, 3 Jul 2001 virgil at matheron.estadi.uv.es wrote:

            
Then please use `Open Source' or `Free Software' so it is clear that
you don't mean zero-cost.

The tools are the StatConnector server .exe and .dll, and those are GPL.
On the other hand, Windows is not free, so I think you need to use a
different operating system.

There are no Open Source versions of Visual Basic, either.
Not true.  It uses msvcrt.dll, for example.  DLLs are DLLs, no
language-specific.