#' Get product category from data file
#'
#' Picks a random product category from the data file
#'
#' @return A product category from the data file
#' @export
get_cat <- function() {
fakea <- utils::read.csv(url("https://raw.githubusercontent.com/borstell/fakea/master/fakea_products_global.csv"))
item <- dplyr::sample_n(fakea,1)$Category
return(item)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.