-
Notifications
You must be signed in to change notification settings - Fork 22
Add knit_print method for sessionInfo #26
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
base: master
Are you sure you want to change the base?
Conversation
|
Could you show me an output sample? Thanks! |
|
Here is what my current session looks like with the suggested knit_print.sessionInfo function (since it outputs markdown, I just pasted it here; the actual output is what the raw text below looks like):
|
|
I think a complete hash is probably too long. Perhaps we can use the first few characters like what The other problem is that this function only covers the case for Markdown output. I'm not sure if it is worth supporting other types of output like LaTeX. |
|
Do you know of a good function to generically print out lists as markdown bulleted lists? |
|
Nope... but as a lazy fallback method, you could simply remove |
|
Related to the above, what do you think about this gist (https://gist.github.com/billdenney/5ef10d82e6bcdbcac4f0f38562c23b53) as a way to generate nested lists in markdown? If you like it, would you prefer it here in printr or in the main knitr package (ala kable)? With that, I can make knit_print.sessionInfo pretty simple and it should work for any of html, LaTeX, and txt (aka markdown) output. |
|
Thanks for the work. Unfortunately I don't have time to review it at the moment, or even in the next couple of months. If you really want this feature, you can use the old good |
# Conflicts: # DESCRIPTION # NAMESPACE
This makes sessionInfo look better in markdown documents by changing the output to a nested unnumbered list. It provides a bit more information for packages installed from GitHub via devtools by giving the SHA1 hash for those packages.