get_modal_info: Generate introductory info for the html of a modal window

Description Usage Arguments Value Examples

View source: R/render_rmd.R

Description

This function generates the html tags for the top portion of a rmd modal window, containing the introductory information about that window. This function only will work within a rmd file to be knitted.

Usage

1
get_modal_info(rmd = knitr::current_input(), info_modal_links_csv)

Arguments

rmd

The name of an input file passed to knit().

info_modal_links_csv

A hyperlink to the google sheet, in csv format, that contains the modal links info.

Value

The function returns a string that is a set of html tags to be inserted into a html file.

Examples

1
2
3
4
## Not run: 
get_modal_info(info_modal_links_csv = "https://docs.google.com/spreadsheets/d/1yEuI7BT9fJEcGAFNPM0mCq16nFsbn0b-bNirYPU5W8c/gviz/tq?tqx=out:csv&sheet=info_modal_links")

## End(Not run)

marinebon/infographiqR documentation built on Dec. 21, 2021, 2:44 p.m.