Skip to content

Render Agent Report as a standalone file #284

Answered by rich-iannone
jkaupp asked this question in Q&A
Discussion options

You must be logged in to vote

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 get_agent_report() so you get the object you really want.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@rich-iannone
Comment options

@rich-iannone
Comment options

Answer selected by rich-iannone
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants