Fix dependency problems when using attach_dependencies(standalone = TRUE)
:
- bootstrap
- Fully embed entire bootstrap package, including all assets, not just css
- Attach src
from top level of bootstrap, so all assets are bundled.
- jquery
:
- Fix missing package
argument in jquery
's htmlDependency()
definition
- attach jquery
& bootstrap
dependencies before other frontend dependencies,
as other dependencies require jquery
(especially) to be loaded already.
- I named a fixup commit "idk"
, sorry @me [aebf9372] [a2eb660]
- mustache
templates:
- Fix outdated refEREnce to template file test.html.mustache
, which was deleted.
- Now include display.html.mustache
embedHandler()
backwards compatible with graphs generated by
mandrake<1.1.0
mandrake<1.1.0
, R
generated html
directly and this was passed to
visNetwork
to be rendered directlymandrake>=1.1.0
, R
encodes the data into json
& passes this object
to visNetwork
, which can be decoded & flexibly rendered by the frontend.embedHandler()
tries to parse the input as json
, then rendering it
into a template, but if JSON.parse
raises a syntax error, the input will be
given directly to the DOM
DOMPurify
)styler::style_text()
in try
blockR
does a better job of linking
documentationDOMPurify
js dependency (XSS Sanitization js lib) was previously included as href
dependencyhref
dependencies are supported by htmltools
, but not yet by rmarkdown
.DOMPurify
is embedded directly (for now)warn_deprecated
option to old js handlers so that they can be evaluated in generating docs
without triggering a warninghtml
- R
does not have great tools for this.json
to the frontend handler, which renders it using mustache.js
.mandrake::embed_event_handler()
due to XSS vector, and its
annoying to maintain JS stored in R code. mandrake::attach_dependencies()
&drake::render_graph(on_select = "embed_event_handler")
htmlwidgets::saveWidget
when selfcontained = TRUE
breaking embedded stylesheets.attach_dependencies()
, which attaches bootstrap and jquery deps to graphsVersion Skipped
rlang::\
%||%``inheritCol
. that allows columns to be inherited from other packages.
Give a package name, and a list of columns.roclet_process.roclet_col()
, roxygen2::roxy_meta_get("current_package")
,
will attempt to use env$.packageName
. roclet_col()
, "objects"
(or the default storr
namespace),
where column is referenced by"unique"
, where they are referenced by name onlysrcpkg
is added to
"package:{srcpkg}"
, which contains only columns defined by srcpkg
.@importFrom roxygen2 roclet_process
, etc to import roxygen2 generics@col
outputs never got written to file,
to be found by @inheritCol
.@col
are processed, and results cached, then all @inheritCol
outputs are processed.decorate_plan()
function.
This function wraps the column extraction and linking process, and
allows: command
column of the plan is parsed, highlighted, and code
referenced are automagically linked to their docs (thanks to downlit).Tentative First-Pass
@col
tag + column doc workflow #8.yaml
.Initial Dev Version
extract_column_names()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.