sharepoint页面嵌入_如何使用Iframe标签在SharePoint上嵌入闪亮的应用程序

I have a very simple app showing some data.

How do you embed this in a SharePoint site using using iframe ?

or is there an easier way to do this ?

library(ggplot2)

library(shiny)

library(DT)

library(readr)

PRTypeCount

ui

title = 'PRTypeCount',

tabPanel('PRTypeCount', DT::dataTableOutput('PRTypeCount')))

server

output$PRTypeCount

DT::datatable(PRTypeCount, options = list(pageLength = 25))

)

}

shinyApp(ui = ui, server = server)

解决方案

If you do not have a shiny server your best bet is probably the flexdashboard package or making individual components and arranging them in SharePoint designer. Here is a quick example, you will be somewhat limited with interactivity as compared to shiny -- there are some things you can do with plotly, ggiraph, and some other packages. For many use cases this can be perfectly adequate:

---

title: "Untitled"

output:

flexdashboard::flex_dashboard:

orientation: columns

vertical_layout: fill

---

```{r setup, include=FALSE}

library(flexdashboard)

```

Column {data-width=650}

-----------------------------------------------------------------------

### Chart A

```{r}

DT::datatable(iris)

```

Column {data-width=350}

-----------------------------------------------------------------------

### Chart B

```{r}

hist(iris$Sepal.Length)

```

### Chart C

```{r}

plot(iris$Sepal.Length, iris$Sepal.Width)

```

Once you knit this rmd file to html. You make can make a copy of the HTML file and change the extension to .aspx.

Then you can put this .aspx file in in a document library.

Then add a page viewer web part where you want the content displayed, linking it to the .aspx file in the document library.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值