Description Usage Arguments Examples
View source: R/get_shinyrates_data.R
Updates the data from shinyrates.com
1 2 3 4 5 | update_shinyrates_data(
df,
old_file = "https://raw.githubusercontent.com/delabj/pogoshinyrates/master/data/shinyrates.csv"
)
|
df: |
a data frame to write |
old_file: |
filepath to the old version of the shinyrates data (defaults to github)ro |
1 2 3 4 5 | date <- Sys.Date()
df <- scrape_shinyrates_website()
df <- format_shinyrates_data(df=df, timestamp=date)
newdf <- write_shinyrates_data(df)
update_shinyrates_data(newdf)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.