Nothing
#' Food/price mismatch check
#'
#' Checks if all foods have a price.
#' @param df Dataframe.
#' @return No return, only performs a check.
#' @export
check_match_food_price <- function(df){
if(any(is.na(df$food_id))){
stop('There is a food without an ID! Check your data.')
}
if(any(is.na(df$price))){
stop('There is a food without a price! Check your data.')
}
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.