Skip to content

Commit

Permalink
add embedded apps #6
Browse files Browse the repository at this point in the history
maxheld83 committed Aug 16, 2020

Unverified

This user has not yet uploaded their public signing key.
1 parent ef28c91 commit 017da1b
Showing 5 changed files with 72 additions and 0 deletions.
1 change: 1 addition & 0 deletions .Rbuildignore
Original file line number Diff line number Diff line change
@@ -9,3 +9,4 @@
^docs$
^pkgdown$
Dockerfile
^vignettes/
7 changes: 7 additions & 0 deletions pkgdown/_pkgdown.yml
Original file line number Diff line number Diff line change
@@ -6,3 +6,10 @@ authors:
href: https://www.sub.uni-goettingen.de/
template:
package: subugoetheme
articles:
- title: Example Apps
navbar: Example Apps
description: Shiny apps used for testing.
contents:
- hello-shiny
- old-faithful
2 changes: 2 additions & 0 deletions vignettes/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*.html
*.R
31 changes: 31 additions & 0 deletions vignettes/hello-shiny.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "hello-shiny"
---

<style>
.shiny-app-frame {
margin-top: 50px;
position: fixed;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
.shiny-app-frame iframe {
width: 100%;
height: 100%;
border: none;
}
/* must be hidden otherwise it gets overlaid over the app */
footer{
visibility: hidden
}
.page-header{
visibility: hidden
}
</style>

<div class="shiny-app-frame">
<iframe src="http://hello-shiny.azurewebsites.net">
</iframe>
</div>
31 changes: 31 additions & 0 deletions vignettes/old-faithful.Rmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
---
title: "old-faithful"
---

<style>
.shiny-app-frame {
margin-top: 50px;
position: fixed;
left: 0;
top: 0;
bottom: 0;
right: 0;
}
.shiny-app-frame iframe {
width: 100%;
height: 100%;
border: none;
}
/* must be hidden otherwise it gets overlaid over the app */
footer{
visibility: hidden
}
.page-header{
visibility: hidden
}
</style>

<div class="shiny-app-frame">
<iframe src="http://old-faithful.azurewebsites.net">
</iframe>
</div>

0 comments on commit 017da1b

Please sign in to comment.