Showing results for 
Show  only  | Search instead for 
Did you mean: 
Back again with another edition of 'How we use Dropbox', so find out how Ross uses Dropbox to answer some new house questions here!

Dropbox ideas

Got an idea for Dropbox? We want to hear it. Our team will review the top voted ideas, so share them here!

Showing results for 
Show  only  | Search instead for 
Did you mean: 

Support for R markdown code show/hide buttons

Support for R markdown code show/hide buttons

Explorer | Level 3

Our lab wants to use dropbox as a way of ourganizing markdowns of our code. 


The R markdown notebooks contain an option to use code "buttons" that show/hide code. These buttons do not work when the html page is opened using dropbox viewer. 


I am no expert here, but I believe the buttons are coded in CSS and maybe javascript. I will try to include some source code so you can see.


I am using Mac OS X sierra. and Safari 11.0.1


You can recreate the .rmd file by simply making a new R markdown notebook in R studio. Simply upload the knit html to dropbox to experience the issue of the code hide/show not working.


$(document).ready(function () {
  window.initializeCodeFolding("show" === "show");

<div class="fluid-row" id="header">

<div class="btn-group pull-right">
<button type="button" class="btn btn-default btn-xs dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"><span>Code</span> <span class="caret"></span></button>
<ul class="dropdown-menu" style="min-width: 50px;">
<li><a id="rmd-show-all-code" href="#">Show All Code</a></li>
<li><a id="rmd-hide-all-code" href="#">Hide All Code</a></li>
<li role="separator" class="divider"></li>
<li><a id="rmd-download-source" href="#">Download Rmd</a></li>

<h1 class="title toc-ignore">R Notebook</h1>


Thanks for your suggestion @avnesta - Let's keep track and see if other users help support your feature suggestion

Status changed to: New

This idea is going to need a bit more support.

We've updated the status to encourage more users to back you up!

Status changed to: Needs more votes
Vote for this idea

Like this idea? Vote for it and we will give it the attention it deserves!

0 votes received