add_linkout: Add linkout HTML

add_linkoutR Documentation

Add linkout HTML

Description

Non NA values in id_col of query_res are inserted between pre_url and post_url to form hyperlinks. Relevant HTML markup is also added.

Usage

add_linkout(
  query_res,
  id_col,
  img_url,
  pre_url,
  post_url = NULL,
  title = id_col
)

Arguments

query_res

data.frame returned by summarize_compound.

id_col

Character with column in query_res that contains ids to be inserted between pre_url and post_url to form the link. NA values will be ignored.

img_url

Character with url to an image to display as hyperlink.

pre_url

Character with url portion to paste before id_col column values.

post_url

Character with url portion to paste before id_col column values.

title

Character that will be added to hyperlink title attribute. Default is id_col.

Value

query_res with HTML for hyperlinks in id_col.


hms-dbmi/drugseqr documentation built on Feb. 15, 2024, 10:38 p.m.