Disable Slidy Click Advance

Slidy presentations in R, by default, advance on mouse-click, which can be frustrating.

Once you have a Slidy presentation loaded, the “k” key will disable this.

We can disable it more generally by modifying the rmarkdown package you have installed.

  1. Find your rmarkdown installation:
system.file(package = "rmarkdown")
  1. Navigate to that directory, then edit the file:
rmd/slidy/Slidy2/scripts/slidy.js
  1. Find the line that defines mouse_click_enabled (in rmarkdown version 2.20, this is line 55). Change the value of true to false.
Home | Back to blog