title: R DT & blogdown - creating table leads to 'path too long'
body: <p>I am trying to create a table with the DT package in my blogdown post.
  However, datatable(mydata) leads to <code>Error in dirname(to) : path too long</code>. The path has 71 characters. The full trace back of the error is</p>
  <pre><code>Error in dirname(to) : path too long
  12.
  dirname(to)
  11.
  dir.exists(x)
  10.
  utils::file_test(&quot;-d&quot;, paths)
  9.
  dir_exists(dirname(to))
  8.
  (function (from, to, isdir) { if (!dir_exists(dirname(to))) dir.create(dirname(to), recursive = TRUE) ...
  7.
  mapply(function(from, to, isdir) { if (!dir_exists(dirname(to))) dir.create(dirname(to), recursive = TRUE) if (isdir &amp;&amp; !dir_exists(to)) ...
  6.
  copyDependencyToDir(dep, libdir, FALSE)
  5.
  FUN(X[[i]], ...)
  4.
  lapply(rendered$dependencies, function(dep) { dep &lt;- copyDependencyToDir(dep, libdir, FALSE) dep &lt;- makeDependencyRelative(dep, dir, FALSE) dep ...
  3.
  htmltools::save_html(htmlProduct, file = htmlfile, libdir = libraryFolder)
  2.
  print.htmlwidget(x)
  1.
  (function (x, ...) UseMethod(&quot;print&quot;))(x)
  </code></pre>
  <p>I don't think that the problem is indeed the length of the path, since I do not encounter this error when using the datatable function outside of blogdown. Any idea? The same error also occurs when I use the <code>reactable</code> package.</p>