I am experiencing issues with RStudio Connect properly displaying output from DT, primarily tables and plots that are rendered through Bootstrap. It seems like the issue is related to not being able to find jQuery, which results in Bootstrap not being loaded.
Here's a very simple example of an RMarkdown file I am publishing from RStudio Server Pro:
---
title: "Untitled"
author: "Daren Eiri"
date: "6/2/2021"
output: html_document
---
## R Markdown
This is an R Markdown document. Markdown is a simple formatting syntax for authoring HTML, PDF, and MS Word documents. For more details on using R Markdown see <http://rmarkdown.rstudio.com>.
When you click the **Knit** button a document will be generated that includes both content as well as the output of any embedded R code chunks within the document. You can embed an R code chunk like this:
summary(cars)
## Including Plots
You can also embed plots, for example:
```{r}
plot(pressure)
library(magrittr)
library(DT)
summary(cars) %>%
datatable()
When I preview this by knitting in RStudio Server Pro, I can see the table:
But once I push-to-publish, the table is missing and I see errors regarding Bootstrap not loading:
Surprisingly, this has affected some other static content I have published a month or so ago. I have tried using R 3.6.2 and R 4.0.3 and updated rsconnect, packrat, DT without success. Maybe I'm missing something simple, or maybe it's related to how our IT manages our RStudio Connect resources (it's behind a proxy). However, I do see one document published months ago (as static content) that still displays the plots and tables from DT.
One thing I noticed in the browser inspector debugging tool, is that the <script src is a bit different:
Compared to when it is working (displaying the javascript content):
Any help is greatly appreciated.