I want to add a full-screen background image to one or more slides in my R Presentation (Rpres) slide deck created with Rstudio. I understand that Rstudio's R Presentation slides use the reveal.js framework to obtain all the nice eye-candy effects, and the closest I've got to achieving what I want is by following the example here: https://www.uvm.edu/rsenr/vtcfwru/R/fledglings/14_Slideshows.html and adding the following line before the start of a slide:
--- &slidebg bg:url(atlas.png);background-size:cover
### Introduction: about this talk
Blah blah blah...
However, although I see the image, it is not centered and the the image only covers the available text area -- that is, the image appears to be cropped and there are large margins surrounding the image. If there was a way to center the image and remove the margins around the image, I would have what I want. I'd rather not have to hack the html after knitr'ing the Rpres file. Also, I'd rather not have to re-code my slides in html -- I like being able to create my slides in markdown in Rstudio.
I did try following the advice here: Rpresentation in Rstudio - Make image fill out the whole screen specifically, the comment about using http://github.com/regisb/reveal.js-fullscreen-img but I couldn't get this to work -- either the proposed solution doesn't play well with Rpres files, or the information in the README wasn't sufficient for me to hack together a kludge to get it working.
This seems like a very simple request to make. Surely something as simple as adding a background image to a slide cannot be so hard? Any ideas, please?