-
Notifications
You must be signed in to change notification settings - Fork 37
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
helper function for files produced with html_print #10
Comments
html_print
@wch is this worth exploring/demonstrating in |
This has been (almost) done in the current master branch of yihui/knitr. Simply try an arbitrary widget in R Markdown, and compile it to a non-HTML output format: leaflet() %>% addTiles() %>% fitBounds(0, 40, 10, 50) I have not supported arbitrary HTML objects (such as |
Oh I forgot to mention that requires this branch of htmlwidgets: ramnathv/htmlwidgets#191 |
Great, I'll check it out there and close this issue here. I only used |
I can see how this might be useful outside of knitr as well. @timelyportfolio I think that this functionality would conceptually be a nice fit for inclusion in htmlwidgets. However, because webshot has some unusual external dependencies, it could make sense to include that functionality in the webshot package itself. |
Definitely agree this can be useful outside knitr. |
Ok, happy to work something up, but know quest for CRAN might push it to next release. Let me know if you want to squeeze it in and I'll be glad to work on it. |
Yup, I just submitted to CRAN so it would have to be for the next version. On Thu, Mar 3, 2016 at 4:44 PM, timelyportfolio [email protected]
|
I think a very useful helper function with
webshot
would be something that provides the validurl
for a local file created withhtmltools::html_print
. I doubt this works on non-Windows but something like this might be very helpful especially withhtmlwidgets
(see ramnathv/htmlwidgets#95).The text was updated successfully, but these errors were encountered: