read_tags: Retrieve a TAGS archive of Twitter statuses and bring into R

View source: R/setup-functions.R

read_tagsR Documentation

Retrieve a TAGS archive of Twitter statuses and bring into R

Description

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



example_tags <- "18clYlQeJOc6W5QRuSlJ6_v3snqKJImFhU42bRkM_OX8"
read_tags(example_tags)



bretsw/rtags documentation built on Feb. 4, 2024, 6:20 a.m.