Skip to contents

Keep in mind that read_tags() uses the googlesheets4 package, and one requirement is that your TAGS tracker has been "published to the web." To do this, with the TAGS page open in a web browser, navigate to File >> Share >> Publish to the web. The Link field should be 'Entire document' and the Embed field should be 'Web page.' If everything looks right, then click the Publish button. Next, click the Share button in the top right corner of the Google Sheets browser window, select Get shareable link, and set the permissions to 'Anyone with the link can view.'

Usage

read_tags(tags_id)

Arguments

tags_id

A Google Sheet identifier (i.e., the alphanumeric string following "https://docs.google.com/spreadsheets/d/" in the TAGS tracker's URL.)

Value

A tibble of the TAGS archive of Twitter statuses

See also

Read more about library(googlesheets4) here.

Examples


# \donttest{
example_tags <- "18clYlQeJOc6W5QRuSlJ6_v3snqKJImFhU42bRkM_OX8"
read_tags(example_tags)
#>  Reading from "#aect19 tweet collector".
#>  Range ''Archive''.
#> # A tibble: 2,564 × 18
#>    id_str         from_user text  created_at time                geo_coordinates
#>    <chr>          <chr>     <chr> <chr>      <dttm>              <chr>          
#>  1 1251954312772… Harriet9… "RT … Sun Apr 1… 2020-04-19 20:22:23 NA             
#>  2 1248064163211… Patrick8… "RT … Thu Apr 0… 2020-04-09 02:44:19 NA             
#>  3 1234206946732… ELTAugus… "RT … Sun Mar 0… 2020-03-01 20:00:40 NA             
#>  4 1229405350178… gsa_aect  "RT … Mon Feb 1… 2020-02-17 14:00:50 NA             
#>  5 1227652243870… fcis_iu   "Giv… Wed Feb 1… 2020-02-12 17:54:38 NA             
#>  6 1225505187453… Stauffer… "RT … Thu Feb 0… 2020-02-06 19:43:00 NA             
#>  7 1225137879921… AECTTech… "RT … Wed Feb 0… 2020-02-05 19:23:27 NA             
#>  8 1225122317849… tadousay  "Man… Wed Feb 0… 2020-02-05 18:21:36 NA             
#>  9 1219758386436… gsa_aect  "RT … Tue Jan 2… 2020-01-21 23:07:15 NA             
#> 10 1219043574555… aectddl   "RT … Sun Jan 1… 2020-01-19 23:46:50 NA             
#> # ℹ 2,554 more rows
#> # ℹ 12 more variables: user_lang <lgl>, in_reply_to_user_id_str <chr>,
#> #   in_reply_to_screen_name <chr>, from_user_id_str <chr>,
#> #   in_reply_to_status_id_str <chr>, source <chr>, profile_image_url <chr>,
#> #   user_followers_count <dbl>, user_friends_count <dbl>, user_location <chr>,
#> #   status_url <chr>, entities_str <chr>
# }