update_database: Update the local twitter database

Description Usage Arguments Value

View source: R/update_database.R

Description

Update the local twitter database, which should have been set up via inst/rmd/set_up_database/set_up_database.R

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
update_database(
  people = NULL,
  get_new = FALSE,
  delete_duplicates = TRUE,
  only_new_people = FALSE,
  after = "2000-01-01",
  until = as.character(Sys.Date() + 1),
  force_old = FALSE,
  refetch = FALSE,
  refetch_since = NULL
)

Arguments

people

A character vector of twitter accounts. If null, will do existing people

get_new

Get new data. If TRUE, will fetch all tweets again.

delete_duplicates

If TRUE, will export the data to R, remove duplicates, then overwrite the db

only_new_people

Whether to only fetch people who are NOT yet in the database (ie, automatically filters the people argument)

after

The date after which tweets should be retrieved. Default to 2000-01-01

until

The date until which tweets will be retrieved

force_old

Set to TRUE if retrieving tweets older than what is already in the database (only for exceptional cases)

refetch

Set to TRUE to delete previous entries in the database for the person in question and rescrape

refetch_since

Whether to only refetch since a certain date (ie, delete all entries until that date). Only applicable if refetch is true

Value

A set up database


joebrew/vilaweb documentation built on Sept. 11, 2020, 3:42 a.m.