Tag Archives: R software

Recommended: LaTeX/Mathematics

You can incorporate very nice looking mathematical formulas in R Markdown fairly easily. The system relies on LaTeX for displaying formulas and is surprisingly easy to learn. But every once in a while you want to do something a bit exotic, like placing a “hat” in your equation. I’ve typically just done a quick Google search on something like “LaTeX hat symbol” and each different search yields a different website. Recently, I stumbled up a fairly comprehensive guide to displaying mathematical formulas in LaTex. It is published as an eBook.

Note: Some of the examples require additional libraries like amsmath and I haven’t figured out yet how to take advantage of these libraries in R Markdown. Continue reading

Recommended: Convert PowerPoint Slides to xaringan (remark.js) Slides

I have been constructing most of my recent presentations to R Markdown. This includes presentations that have little or no R code in them. I like using R Markdown because you are manipulating simple text files. This makes it easy to use version control, among other things.

There’s a new package, which I have not tried yet, that will do a direct translation of a PowerPoint file into R Markdown. It uses a presentation format (xaringan) that I personally do not like, but it should be pretty easy to switch from xaringan to a different format like ioslides. The package owner warns that you will probably have to tweak the resulting R Markdown code to get it perfect, but the package should do “get you about 90% of the way there for about 80% of use cases.” That’s still a huge time savings. Continue reading

PMean: Getting R to shut the heck up

When you are using R Markdown to create various documents, you are often interested in displaying any informative messages that appear along the way. This is especially true for documents you plan to use yourself. But when you are preparing a report or a presentation for someone else, you may want to suppress these messages. That’s not always easy because different functions in R use different means to display messages, especially warning messages. So the option that might suppress a warning message from one function might not work for another function. Warnings when loading packages are notoriously difficult to suppress. I want to list, for my own benefit, all of the options that are available for getting R to shut the heck up. Continue reading