-
Notifications
You must be signed in to change notification settings - Fork 11
rgl displays not showing up #85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I'm glad that you asked. This is an area where I haven't decided what to do yet. I'd like to give package authors a way to register their CSS/JS assets for their widgets, so litedown can pick them up and automatically insert them to the HTML For now, the public API I have provided is I do have internal API to register CSS/JS, but I'd like to know if |
I'm not sure if
That file definitely exists; it was obtained using |
I have a fix for the issue above, but I think I don't understand the intention of the original code, so it might cause other problems. The original code that goes wrong looks like this: Lines 1290 to 1308 in 637bdf0
Here x is supposed to be the a filename or URL pointing to a dependency to link or include. When x is an absolute file path, none of is_web , is_rel , link1 or link2 are true, so the contents should be inserted, and that's what happens at the end with the call to resolve_external() . However, that function sees some content in the leaflet file that makes it think it needs to download something, and then things go wrong.
What I don't understand is the logic that relative paths should be distinguished from absolute paths. My example works fine if |
…operty; this fixes the leaflet.css error in #85
The error was due to this line in I have excluded the |
Uh oh!
There was an error while loading. Please reload this page.
I just had a report that the vignettes in
rgl
are not displaying the graphics properly. They were using R Markdown andmarkdown::html_format
as the output driver, and that stopped working with this commit rstudio/markdown@b4c328d to that package.For example, this vignette: https://github.com/dmurdoch/rgl/blob/8e12a29031f2b0e52fc204cc1b947fcdabd6bdf0/vignettes/transparency.Rmd should display movable shapes, but it just displays blank blocks now.
Of course,
markdown
is no longer being maintained so I can't post an issue there, and I tried to follow the instructions to uselitedown::html_format
instead, with no luck.I can switch
rgl
back to usingrmarkdown::html_vignette
; it still works, but I liked avoiding Pandoc withmarkdown::html_format
, and from the design goals, it seems likelitedown
should suit me if I can figure out how to get it to work.I think the things I need to know are necessary changes to
knit_print
methods andsew
methods to work inlitedown
(and maybe changes to code to detect that I'm inlitedown
). Are those documented anywhere?The text was updated successfully, but these errors were encountered: