Skip to content
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

Add print method for results data, LaTeX format #21

Open
gasparl opened this issue May 17, 2022 · 0 comments
Open

Add print method for results data, LaTeX format #21

gasparl opened this issue May 17, 2022 · 0 comments

Comments

@gasparl
Copy link

gasparl commented May 17, 2022

We could add a print method for the results returned by add_stats(). This print method (which could be an S3method for R base's print, or otherwise just a simple function in tidystats, such as tidy_print()) would print to the console all data just the same way as it's inserted in the Word/GDocs editors. This would help check in advance what we can expect in the editors, and in some cases it might also just be a quick way to copy-paste the output into the editors.

Relatedly, there could be an option to print it in a LaTeX format. I could not find any add-in option in Overleaf, so this could be the alternative solution. It'd be far more simplistic than the add-ins, but could be still useful, and seems easy to implement. It could either work via the plain print/tidy_print as an option, e.g. as print(x, LaTeX = TRUE), or have its dedicated function itself. At any rate, both would work via a common internal function, as the basic structure can probably be very similar (e.g., what symbol/number to print at which placement, what to format in italics, etc.).

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

No branches or pull requests

1 participant