title: How to open a local html file from R in an operating system independent way?
body: <p>How to open a local html file from R in an operating system independent way?</p>
  
  <p>For demonstration purposes, assume that the file is called <code>test.html</code> and is in the working directory.</p>
  
  <h3>initial thoughts</h3>
  
  <ul>
  <li><code>system('gnome-open test.html')</code> 
  <ul>
  <li>This works on Ubuntu</li>
  </ul></li>
  <li><code>browseURL(paste('file://', getwd(),'test.html', sep='/'))</code>
  <ul>
  <li>This works on Ubuntu, but it feels like a bit of a hack and I'm not certain whether it would work on Windows.</li>
  </ul></li>
  </ul>