Connecting Excel with 'ABC' throught Excel works, connecting R with Excel by DDE works also, but how to connect R with 'ABC' application ?
I have application providing DDE interface, from Excel I could retrieve value from it with this DDE reference :
='ABC'|DDE!_nazwa_value
from R I've tried to use tcltk2
library, as follows :
tcltk2::tk2dde.request(service="ABC", topic="DDE", item="_nazwa_value")
but error occurs :
Error in structure(.External(.C_dotTcl, ...), class = "tclObj") :
[tcl] remote server cannot handle this command.
[1] "Error in structure(.External(.C_dotTcl, ...), class = \"tclObj\") : \n [tcl] remote server cannot handle this command.\n\n"
attr(,"class")
[1] "try-error"
attr(,"condition")
<simpleError in structure(.External(.C_dotTcl, ...), class = "tclObj"): [tcl] remote server cannot handle this command.
I'm only trying to use tcltk dde
functions to retrieve data from application, I think that item
part of my tk2dde.request
is wrong, but I've tried various modification (without _
for example), do you know any clues or resources for solving this problem ?
EDIT
something is wrong I don't see ABC server nor DDE topic on server-topic list :
tk2dde.services()
but Excel can still connect and retrieve value using ='ABC'|DDE!_nazwa_value
, DDE Query also do not see it
item
be_nazwa_value
(without{…}
) work? I'm totally on the wrong platform to check… – Aarondde
package directly,package req dde; dde request ...
? – Boyledde
package at CRAN – Tuidde
, that should come with windows builds of Tcl (and so with the Tcl bundle coming with R). What gives (untested):.Tcl("package req dde")
? – Boyle.Tcl("package req dde; dde request ABS DDE _nazwa_value")
– BoyleDDE
? From the documentation it looks liketopic
should be the server name. – Ptarmiganshell("ddecmd request -s ABC -t DDE -i _nazwa_value", intern = TRUE)
. chrisoldwood.com/win32/ddecmd/ddecmd.html – Aintabtopic="DDE"
is it proper - I don't know, how to list server names ? DDESpy don't show everything – Tui