Mandrake 1.1.1
Fixes
Frontend Dependency Management
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 injquery
'shtmlDependency()
definition
- Fix missing
- attach
jquery
&bootstrap
dependencies before other frontend dependencies,
as other dependencies requirejquery
(especially) to be loaded already. mustache
templates:- Fix outdated refEREnce to template file
test.html.mustache
, which was deleted. - Now include
display.html.mustache
- Fix outdated refEREnce to template file
Frontend
- make
embedHandler()
backwards compatible with graphs generated by
mandrake<1.1.0
- In
mandrake<1.1.0
,R
generatedhtml
directly and this was passed to
visNetwork
to be rendered directly - In
mandrake>=1.1.0
,R
encodes the data intojson
& passes this object
tovisNetwork
, which can be decoded & flexibly rendered by the frontend. - Now,
embedHandler()
tries to parse the input asjson
, then rendering it
into a template, but ifJSON.parse
raises a syntax error, the input will be
given directly to theDOM
- In
- (Everything to be given to the DOM is still cleaned by
DOMPurify
)
Backend
- When styling code from plan commands, now wrap
styler::style_text()
intry
block - That way, if code that can't be parsed by styler (eg, contains a pretty printed quosure),
it won't crash the workflow
Misc
- Remove "Remotes" section from DESCRIPTION, change a few dependency packages from github/development head to
CRAN