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 >> 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.'


read_tags(tags_id, google_key = Sys.getenv("GOOGLE_API_KEY"))



A Google Sheet identifier (i.e., the alphanumeric string following "" in the TAGS tracker's URL.)


A Google API key for accessing Google Sheets.


A tibble of the TAGS archive of Twitter statuses


This function requires authentication; please see vignette("setup", package = "tidytags")

See also

Read more about library(googlesheets4) here. If you need help obtaining and setting up a Google API key, please see vignette("setup", package = "tidytags")


if (FALSE) {

example_tags <- "18clYlQeJOc6W5QRuSlJ6_v3snqKJImFhU42bRkM_OX8"