clean: Clean Tweet

View source: R/tweet.R

cleanR Documentation

Clean Tweet

Description

Clean Tweet

Usage

clean(x, ...)

## S3 method for class 'messages'
clean(x, log = NULL, select = NULL, ...)

Arguments

x

A list of class messages.

...

Currently not used.

log

A character string giving the path of the log file (see below).

select

An integer or a logical vector specifying the indices of the messages to keep.

Value

A list of character string (tweet message).

Prevent Double Post

A log file can be used to avoid posting the same documents several times. This file records the unique identifier of each message (generated by compose()). The log file must have four columns separated by a single white space:

  • Date (YYYY-MM-DD);

  • Time (HH-MM-SS);

  • Tweet status id;

  • Message unique id.

Author(s)

N. Frerebeau


nfrerebeau/twitterbot documentation built on Jan. 30, 2023, 1:12 p.m.