【问题标题】:Embed a html found on web in RMarkdown在 RMarkdown 中嵌入在网络上找到的 html
【发布时间】:2019-02-11 19:03:07
【问题描述】:

我在网上找到了这个.html:

http://shabal.in/visuals/kmeans/1.html

如何将此链接嵌入到我的 Rmd 中?这是我的 YAML:

---
title: "Try R Workshop: Clustering"
author: "Jason Baik"
date: "02/19/2019"
output:
  html_document:
    toc: true
runtime: shiny
---

我试过了

<iframe src='http://shabal.in/visuals/kmeans/3.html' ></iframe>

【问题讨论】:

    标签: html r r-markdown


    【解决方案1】:

    <iframe> 有效。您只需在浏览器中打开编织的 html 即可呈现它:

    请注意,您可以使用<style> 标签设置<iframe> 的样式,或者使用内置选项更改框架的大小。为了安全起见,为不支持 iframe 的浏览器添加一条消息也是一个好主意:

    <iframe width='1000px' height='1000px' src='http://shabal.in/visuals/kmeans/3.html' >
      <p>Your browser does not support iframes</p>
    </iframe>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-05-02
      • 2015-12-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-12-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多