Skip to contents

This function extracts the name of the chemical from the JECFA database.

Usage

get_jecfa_name(page)

Arguments

page

(xml_document) The page content.

Value

The name of the chemical.

Examples

url <- stringr::str_c(
  "https://",
  "apps.who.int/",
  "food-additives-contaminants-jecfa-database/Home/Chemical/",
  "1"
)
page <- rvest::read_html(url)
get_jecfa_name(page)
#> [1] "KARAYA GUM"