Description Usage Arguments Details Value Author(s) See Also Examples
twitteR can have a database backend registered from which to store and load tweet and user data. These functions provide mechanisms for setting up the connection within twitteR
1 2 3 | register_db_backend(db_handle)
register_sqlite_backend(sqlite_file, ...)
register_mysql_backend(db_name, host, user, password, ...)
|
db_handle |
A DBI connection |
sqlite_file |
File path for a SQLite file |
db_name |
Name of the database to connect to |
host |
Hostname the database is on |
user |
username to connect to the database with |
password |
password to connect to the database with |
... |
extra arguments to pass to |
Currently only RSQLite
and RMySQL
are supported. To use either
of these DBI implementations the appropriate packages will need to be
installed.
The register_sqlite_backend
and register_mysql_backend
are
convenience wrappers to both create the DBI connection and call register_db_backend
for you.
The DBI connection, invisibly
Jeff Gentry
store_tweets_db
, store_users_db
, load_tweets_db
, load_users_db
1 2 3 4 5 6 7 | ## Not run:
register_sqlite_backend("/path/to/sqlite/file")
tweets = searchTwitter("#scala")
store_tweets_db(tweets)
from_db = load_tweets_db()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.