Skip to content

Add new toLatex() method for nicer printing in PDFs#126

Open
andrewheiss wants to merge 4 commits intor-lib:mainfrom
andrewheiss:latex-support
Open

Add new toLatex() method for nicer printing in PDFs#126
andrewheiss wants to merge 4 commits intor-lib:mainfrom
andrewheiss:latex-support

Conversation

@andrewheiss
Copy link

@andrewheiss andrewheiss commented Sep 19, 2025

Base R's sessionInfo() has a toLatex() method for pretty printing in LaTeX PDFs:

```{r}
#| results: asis
toLatex(sessionInfo())
```
image

This PR fixes #82 and adds a similar method for session_info():

```{r}
#| results: asis
toLatex(sessioninfo::session_info())
```
image

It supports all the different potential info sections that session_info() can generate:

```{r}
#| results: asis
toLatex(sessioninfo::session_info(info = "all"))
```
image image

@tanho63
Copy link

tanho63 commented Sep 19, 2025

@andrewheiss I think this should close #82 and not #88?

@andrewheiss
Copy link
Author

Ah yep, I accidentally hit the wrong issue in the popup menu (#82 is in the original commit)! It's #82 !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature Request: toLatex() for sessioninfo::session_info()

2 participants