ramnathv / htmlwidgets

HTML Widgets for R
http://htmlwidgets.org
Other
792 stars 205 forks source link

Move rmarkdown from Suggests to Imports #454

Closed cpsievert closed 1 year ago

cpsievert commented 1 year ago

This "temporary solution" of moving rmarkdown from Suggests to Imports will make it so existing saveWidget(selfcontained = TRUE) code won't error out when {rmarkdown} isn't installed.

However, longer term, saveWidget() should probably be a basic wrapper around htmltools::save_html() (and {htmltools} should probably use {pandoc} instead of {rmarkdown}). In that case, we'll be able to move rmarkdown back to Suggets. See https://github.com/rstudio/htmltools/issues/73 for more