Learn R Programming

twitteR (version 0.1.6)

updateStatus: Functions to manipulate Twitter status

Description

These functions can be used to set or delete a user's Twitter status

Usage

tweet(text, session = getCurlHandle(), ...)
updateStatus(text, session = getCurlHandle(), ...)
deleteStatus(status, session = getCurlHandle(), ...)

Arguments

text
The text to use for a new status
status
An object of class status
session
An object from initSession
...
Optional arguments to be passed to getURL

Value

  • The updateStatus function will return an object of class status.

    The deleteStatus returns TRUE on success and an error if failure occurs.

Details

The tweet and updateStatus functions are the same. To delete a status message, pass in an object of class status, such as from the return value of updateStatus.

See Also

initSession

Examples

Run this code
sess <- initSession('myUser', 'myPass')
      ns <- updateStatus('this is my new status message', sess)
      ## ooops, we want to remove it!
      deleteStatus(ns)

Run the code above in your browser using DataLab