With regards above embed html file into shiny, tried few methods as below but doesn't work...
For my understanding a completed static html file (term as webpage) had embed images files and also converted css codes to html codes but not attach again the files inside the shiny folder .
opened 07:06AM - 21 Mar 22 UTC
```r
library('shinydashboard')
dashboardPage(
...
...
dashboardBody… (
shinyDashboardThemes(theme = 'blue_gradient'),
tabItems(...)
)
## 1st embed method
tabItem(tabName = 'en', h2('English'),
tags$iframe(src = 'https://rpubs.com/englianhu/ryo-en',
height = 800, width = '100%', frameborder = 0)),
## 2nd embed method
tabItem(tabName = 'en', h2('English'),
HTML(readLines('www/ryo-en.html'))),
## 3rd embed method
tabItem(tabName = 'en', h2('English'),
tags$html(includeHTML('www/ryo-en.html'))),
```
![Screenshot_5](https://user-images.githubusercontent.com/7227582/159216765-49583e3f-5144-4d89-ae40-804cdb51d761.png)
Same errors by trying above 3 methods.
**Reference**
- https://community.rstudio.com/t/embedding-html-widgets-in-shinyapp/20429
- https://stackoverflow.com/questions/24875943/display-html-file-in-shiny-app
- https://community.rstudio.com/t/embedding-html-containing-links-to-online-pages-in-shiny-app/87414/4
- https://github.com/rstudio/shiny/issues/1880#issuecomment-341205015
- https://github.com/rstudio/shiny/issues/2535#issuecomment-528430930
system
Closed
May 14, 2022, 12:37pm
2
This topic was automatically closed 54 days after the last reply. New replies are no longer allowed. If you have a query related to it or one of the replies, start a new topic and refer back with a link.