Skip to contents

Pure. Returns the first FUNCTION comment, with citations stripped.

Usage

protvar_parse_function(body)

Arguments

body

A parsed ProtVar /function response.

Value

A single string, or NA_character_ when there is no function comment.

Examples

body <- list(comments = list(list(
  type = "FUNCTION",
  text = list(list(value = "Induces arrest (PubMed:11025664)."))
)))
protvar_parse_function(body)
#> [1] "Induces arrest."