DT datatable showing on gitbook locally but not on GitHub Pages

I tested using Yihui's bookdown example for HTML widgets

```{r DT-demo, fig.cap='A table widget rendered via the DT package.', dev='png', cache=TRUE, cache.extra=packageVersion('DT'), screenshot.opts=list(zoom=2)}
DT::datatable(iris)
```

and it renders in my bookdown gitbook output locally. But when published to GitHub Pages all I see is the "figure" caption and the table is not showing. Does anyone know what may be happening?

Never mind, I figured it out: it turns out that I did not push the gitbook lib_dir.

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.