A PubMed search is performed for a string given as the search_term argument and the earliest or the latest publications are returned in descending order. This is a useful tool for researching investigational drugs and whether or not they are a code name for an existing drug on the market. Note that there is no expiration_days argument because the earliest dates cannot ever become obsolete.

get_pm(
  conn,
  conn_fun,
  earliest = TRUE,
  latest = !earliest,
  search_term,
  verbose = TRUE,
  render_sql = TRUE
)

See also