Write final dataset, along with a sample, to the folder that will house the app. The unnested df gets created in the app so you don't need to create it here. It also writes the built-in govt dataset to the same location. Once you have those datasets, copy-paste into the same folder the files global.R, server.R, ui.R, about.md, and the www directory found in the inst/examples/nyt_india_app folder.

nyt_write_final_nested_df(
  full_nested_df,
  shiny_app_folder = "nyt_shiny_app",
  sample = FALSE,
  sample_pct = 0.1
)

Arguments

full_nested_df

output of nyt_re_nest_keywords()

shiny_app_folder

name of shiny app folder

sample

whether to write a smaller sample file from full_nested_df

sample_pct

percentage of rows to use in the sample

Value

written nested dataframe (and sample)

Examples

if (FALSE) { nyt_write_final_nested_df(full_nested_df) }