Skip to content

Commit

Permalink
fix(shared): Uncommnet export data component
Browse files Browse the repository at this point in the history
  • Loading branch information
tmelliott committed Dec 9, 2023
1 parent 27c8b05 commit bb8f98f
Show file tree
Hide file tree
Showing 2 changed files with 116 additions and 2 deletions.
114 changes: 114 additions & 0 deletions panels/B2_ExportDataset/3_export.dataset.panel-help.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<title>Export data</title>
<style type="text/css">
body {
font-family: sans-serif;
max-width: 800px;
margin: auto;
padding: 1em;
line-height: 1.5;
box-sizing: border-box;
}
body, .footnotes, code { font-size: .9em; }
li li { font-size: .95em; }
*, *:before, *:after {
box-sizing: inherit;
}
pre, img { max-width: 100%; }
pre, pre:hover {
white-space: pre-wrap;
word-break: break-all;
}
pre code {
display: block;
overflow-x: auto;
}
code { font-family: 'DejaVu Sans Mono', 'Droid Sans Mono', 'Lucida Console', Consolas, Monaco, monospace; }
:not(pre) > code, code[class] { background-color: #F8F8F8; }
code.language-undefined, pre > code:not([class]) {
background-color: inherit;
border: 1px solid #eee;
}
table {
margin: auto;
border-top: 1px solid #666;
}
table thead th { border-bottom: 1px solid #ddd; }
th, td { padding: 5px; }
thead, tfoot, tr:nth-child(even) { background: #eee; }
blockquote {
color: #666;
margin: 0;
padding-left: 1em;
border-left: 0.5em solid #eee;
}
hr, .footnotes::before { border: 1px dashed #ddd; }
.frontmatter { text-align: center; }
#TOC .numbered li { list-style: none; }
#TOC .numbered { padding-left: 0; }
#TOC .numbered ul { padding-left: 1em; }
table, .body h2 { border-bottom: 1px solid #666; }
.body .appendix, .appendix ~ h2 { border-bottom-style: dashed; }
.footnote-ref a::before { content: "["; }
.footnote-ref a::after { content: "]"; }
section.footnotes::before {
content: "";
display: block;
max-width: 20em;
}

@media print {
body {
font-size: 12pt;
max-width: 100%;
}
tr, img { page-break-inside: avoid; }
}
@media only screen and (min-width: 992px) {
pre { white-space: pre; }
}
</style>
</head>
<body>
<div class="include-before">
</div>
<div class="frontmatter">
<div class="title"><h1>Export data</h1></div>
<div class="author"><h2></h2></div>
<div class="date"><h3></h3></div>
</div>
<div class="body">
<h5 id="export-data">Export data</h5>
The current work data set can be downloaded. Select the file type in the
dropdown menu at the to left and press the "DOWNLOAD" button. Several file
types are available the data can be saved in. <br>
<ul>
<li>
txt<br>
A tab delimited text file.
</li>
<li>
csv<br>
A comma seperated text file.
</li>
<li>
RData<br>
A RData binary file.
</li>
<li>
RDS<br>
A RDS binary file.
</li>
</ul>
Note, "RData" and "RDS" file are R only. They can be loaded into R with the load
or readRDS function. They have the advantage that no information is lost. The
txt files (txt and csv) are not able to store some information.
</div>
<div class="include-after">
</div>
</body>
</html>
4 changes: 2 additions & 2 deletions server.R
Original file line number Diff line number Diff line change
Expand Up @@ -258,8 +258,8 @@ shinyServer(function(input, output, session) {
##---------------------------------------##
## B2. "File -> Import Dataset" Module ##
##---------------------------------------##
#source("panels/B2_ExportDataset/1_export.dataset.panel-ui.R", local = TRUE)
#source("panels/B2_ExportDataset/2_export.dataset.panel-server.R", local = TRUE)
source("panels/B2_ExportDataset/1_export.dataset.panel-ui.R", local = TRUE)
source("panels/B2_ExportDataset/2_export.dataset.panel-server.R", local = TRUE)

##---------------------------------------##
## B3. "File -> Export Dataset" Module ##
Expand Down

0 comments on commit bb8f98f

Please sign in to comment.