Bill Harris wrote:
> I'm trying to explore R from J, and I'm having problems.  I've tried the
> batch mode once in the past, but I want something better.  I was
> initially interested in Rserve, but
> http://www.rforge.net/Rserve/doc.html indicates that's not such a good
> idea on Windows.  (Actually, it seems to suggest I not use Windows
> rather than I not use Rserve.  Would that I could change!  :-)
> 
>   It didn't work for me, anyway, but I won't go into that unless someone
>   is really curious.
> 
> So I tried the DCOM server.  I've got an up-to-date J, and PacMan says
> everything is current.
> 
> I installed rcom on R with install.packages("rcom"), as instructed.  I'm
> running R 2.4.1, FWIW.  Then I tried the installation instructions on
> http://www.jsoftware.com/jwiki/Interfaces/R/DCOM.
> 
> Step 1 worked, but step 2 didn't:
> 
> ,----
> |    load'stats/r/rdcom'
> |    '' conew 'prdcom'
> | |domain error: wd
> | |       wd'cc w oleautomation:StatConnectorSrv.StatConnector.1'
> |
> `----
> 
> That's on a fresh J session.  I'm not familiar enough with Windows
> programming or OOP in J to know exactly what path to try next.

I suspect the problem is the rdcom installation. The wiki page had
suggested installing this from the R command line, using
install.packages("rcom")`. When I tried this, I got the same error as
you. When I removed that installation and then installed from
rsrv250.exe, everything worked fine.

Likely the install.packages method needs some additional steps, other
than those documented in the README, i.e. other than registering the com
server. I think Ric Sherlock had got things working from
install.packages, perhaps he can comment.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to