GitHub
LinkedIn
Twitter
YouTube
RSS

External Graphics with knitr

This is part three of our four part series on {knitr} and {rmarkdown} Part 1: Specifying the correct figure dimension in {knitr}. Part 2: What image format should you use for graphics. Part 3: Including external graphics in your document (this post). Part 4: Optimal {knitr} settings. In this third post, we’ll look at including eternal images, such as figures and logos in HTML documents. This is relevant for all R markdown files, including fancy things like {bookdown}, {distill} and {pkgdown}.

Selecting the correct image file type

This is part two of our four part series Part 1: Specifying the correct figure dimension in {knitr}. Part 2: What image format should you use (this post) Part 3: Including external graphics in your document Part 4: Optimal {knitr} settings. There are (at least) three file formats to choose from: JPEG, PNG and SVG. Attribute JPEG PNG SVG Type Raster Raster Vector Transparency No Yes Yes Animation No No Yes Lossy Yes No Yes Recommended Occasionally Yes Often If you are reading this via a syndication site, be sure to go the original post for updated links.

Image sizes in an R markdown Document

At Jumping Rivers we recently moved our website from WordPress to Hugo. The main reason for the move was that since the team are all very comfortable with Git, continuous integration and continuous development using a static web-site generator made more sense than WordPress. Additional benefits are decreasing the page loading time speed and general site security - WordPress sites are notorious for getting hacked if not kept up to date.

Writing a Personal R Package

If you’ve been using R for a while, you’ve likely accumulated a hodgepodge of useful code along the way. Said hodgepodge might include functions you source into multiple projects; bits and bobs that you copy and paste where needed; or code that solved a particularly esoteric problem and will never be applicable elsewhere, but you still enjoy revisiting sometimes. We all do it. If you’re anything like me, your personal library of code has grown gradually and haphazardly.

The (Delayed) 2019 Training Review

Don’t we all miss 2019 (blame Covid for the long delay in this post). The days of going to work and seeing your work colleagues face to face - and for some of you, attending one of our on-site training courses! 2019 was a great year for us. Not only have we broken new boundaries, we have recruited new full-time staff which have furthermore contributed to the glowing success of the company.

Detecting Security Vulnerabilities in R Packages

One of our main roles at Jumping Rivers is to set-up and provide ongoing maintenance to R, Python and RStudio infrastructure. This typically involves ensuring software is up-to-date and making sure everything is running smoothly. The OSS Index developed by Sonatype is a free catalogue of open source components and scanning tools to help developers identify vulnerabilities, understand risk, and keep their software safe. The {oysteR} package is an R interface to the OSS Index that allows users to scan their installed R packages.