346 chars16 lines
This code defines a function client that takes a jabber ID and password as inputs, creates an xmpp connection using the jabber function from the xmpp library, and returns a send_message function. The send_message function takes two arguments: to (the jabber ID of the message recipient) and message (the text to send). The message function from the xmpp library is used to create the message, and the send function is used to send it through the xmpp connection.
This allows you to create a client and send xmpp messages in R as follows:
218 chars6 lines
gistlibby LogSnag