knitr::opts_chunk$set(echo = TRUE)
library(dailyMedR)
First, we query for drug records from NLM's Daily Med API. We can search for a drugname by using the query_daily_med
function
res <- query_daily_med("ERBITUX") res
Once we have a drug record, we can now query for data for this drug
drug <- res[[1]] result <- get_drug_record(drug) result
Note that the echo = FALSE
parameter was added to the code chunk to prevent printing of the R code that generated the plot.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.