Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
i2dash
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
loosolab
software
i2dash
Commits
b1635cf5
Commit
b1635cf5
authored
5 years ago
by
arsenij.ustjanzew
Committed by
jens.preussner
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Resolved Ymlthis issue
parent
610a3960
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.ci/requirements.txt
+1
-0
1 addition, 0 deletions
.ci/requirements.txt
DESCRIPTION
+2
-1
2 additions, 1 deletion
DESCRIPTION
R/assemble.R
+10
-8
10 additions, 8 deletions
R/assemble.R
inst/templates/yaml_header.Rmd
+0
-9
0 additions, 9 deletions
inst/templates/yaml_header.Rmd
with
13 additions
and
18 deletions
.ci/requirements.txt
+
1
−
0
View file @
b1635cf5
...
@@ -3,4 +3,5 @@ r-base
...
@@ -3,4 +3,5 @@ r-base
r-flexdashboard
r-flexdashboard
r-knitr
r-knitr
r-yaml
r-yaml
r-ymlthis
zip
zip
\ No newline at end of file
This diff is collapsed.
Click to expand it.
DESCRIPTION
+
2
−
1
View file @
b1635cf5
...
@@ -18,7 +18,8 @@ Imports:
...
@@ -18,7 +18,8 @@ Imports:
yaml,
yaml,
assertive.sets,
assertive.sets,
stringr,
stringr,
glue
glue,
ymlthis
Suggests:
Suggests:
highcharter,
highcharter,
plotly,
plotly,
...
...
This diff is collapsed.
Click to expand it.
R/assemble.R
+
10
−
8
View file @
b1635cf5
...
@@ -20,13 +20,13 @@ setMethod("assemble", "i2dashboard", function(dashboard, pages = names(dashboard
...
@@ -20,13 +20,13 @@ setMethod("assemble", "i2dashboard", function(dashboard, pages = names(dashboard
}
}
# Add YAML header
# Add YAML header
knitr
::
knit_expand
(
file
=
system.file
(
"templates"
,
"yaml_header.Rmd"
,
package
=
"i2dash
"
)
,
options
(
ymlthis.rmd_body
=
"
"
)
delim
=
c
(
"<%"
,
"%>"
),
ymlthis
::
yml
(
date
=
F
)
%>%
title
=
dashboard
@
title
,
ymlthis
::
yml_
title
(
dashboard
@
title
)
%>%
author
=
dashboard
@
author
,
ymlthis
::
yml_
author
(
dashboard
@
author
)
%>%
theme
=
dashboard
@
theme
,
ymlthis
::
yml_output
(
flexdashboard
::
flex_dashboard
(
theme
=
dashboard
@
theme
))
%>%
interactive
=
dashboard
@
interactive
)
%>%
{
if
(
dashboard
@
interactive
)
ymlthis
::
yml_runtime
(
.
,
runtime
=
"shiny"
)
else
.
}
%>%
cat
(
file
=
tmp_document
,
append
=
FALSE
,
sep
=
"\n"
)
ymlthis
::
use_rmarkdown
(
path
=
tmp_document
,
include_body
=
FALSE
,
quiet
=
TRUE
,
open_doc
=
FALSE
)
# Add i2dash global setup
# Add i2dash global setup
knitr
::
knit_expand
(
file
=
system.file
(
"templates"
,
"i2dash-global-setup.Rmd"
,
package
=
"i2dash"
),
knitr
::
knit_expand
(
file
=
system.file
(
"templates"
,
"i2dash-global-setup.Rmd"
,
package
=
"i2dash"
),
...
@@ -67,6 +67,7 @@ setMethod("assemble", "i2dashboard", function(dashboard, pages = names(dashboard
...
@@ -67,6 +67,7 @@ setMethod("assemble", "i2dashboard", function(dashboard, pages = names(dashboard
warning
(
sprintf
(
"i2dashboard dashboard does not contain a page named '%s'"
,
pagename
))
warning
(
sprintf
(
"i2dashboard dashboard does not contain a page named '%s'"
,
pagename
))
}
}
}
}
# copy tempfile to final_document
# copy tempfile to final_document
file.copy
(
from
=
tmp_document
,
to
=
file
,
overwrite
=
TRUE
)
file.copy
(
from
=
tmp_document
,
to
=
file
,
overwrite
=
TRUE
)
...
@@ -114,4 +115,5 @@ setMethod("assemble", "i2dashboard", function(dashboard, pages = names(dashboard
...
@@ -114,4 +115,5 @@ setMethod("assemble", "i2dashboard", function(dashboard, pages = names(dashboard
sidebar
=
sidebar
,
sidebar
=
sidebar
,
components
=
components
,
components
=
components
,
date
=
Sys.time
())
date
=
Sys.time
())
}
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
inst/templates/yaml_header.Rmd
deleted
100644 → 0
+
0
−
9
View file @
610a3960
---
title: <% title %>
author: <% author %>
output:
flexdashboard::flex_dashboard:
theme: <% theme %>
<% if(interactive) sprintf('runtime: shiny') %>
---
<!-- This dashboard was created with the R package 'i2dash'. https://gitlab.gwdg.de/loosolab/software/i2dash -->
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment