Render Agent Report as a standalone file #284
-
Thank you for your work in such a great package! I've been searching for a way to have agent reports to be produced/saved as a standalone HTML file in a non-clunky fashion. 've been using:
Where |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Thanks for asking about this. I agree! It is not great currently and it would be better to get the reporting as an object you can integrate elsewhere (e.g., HTML fragment, HTML page, gt object, etc.). One thing you can do right now (and this is still not ideal) is something like this: html_fragment <- agent %>% get_agent_report() %>% gt::as_raw_html(inline_css = FALSE) But this doesn't give you a standalone HTML doc, but, you can use htmltools to put the HTML in an element. I'll follow up shortly with an example of that (once I've worked it out), and, I'll want to improve pointblank to improve |
Beta Was this translation helpful? Give feedback.
Thanks for asking about this. I agree! It is not great currently and it would be better to get the reporting as an object you can integrate elsewhere (e.g., HTML fragment, HTML page, gt object, etc.). One thing you can do right now (and this is still not ideal) is something like this:
But this doesn't give you a standalone HTML doc, but, you can use htmltools to put the HTML in an element. I'll follow up shortly with an example of that (once I've worked it out), and, I'll want to improve pointblank to improve
get_agent_report()
so you get the object you really want.