Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
W
woRkflow
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
lsb1
woRkflow
Commits
bade5388
Commit
bade5388
authored
4 years ago
by
B.Anderson
Browse files
Options
Downloads
Patches
Plain Diff
amended to suit new folder name
parent
4b524ac8
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Rmd/make_basicReport.R
+3
-3
3 additions, 3 deletions
Rmd/make_basicReport.R
with
3 additions
and
3 deletions
Rmd/make_basicReport.R
+
3
−
3
View file @
bade5388
...
...
@@ -53,11 +53,11 @@ makeGWPlot <- function(dt){
makeReport
<-
function
(
f
){
# default = html
rmarkdown
::
render
(
input
=
paste0
(
here
::
here
(
"
analysis
"
,
f
),
".Rmd"
),
# we love here:here()
rmarkdown
::
render
(
input
=
paste0
(
here
::
here
(
"
Rmd
"
,
f
),
".Rmd"
),
# we love here:here()
- it helps us find the .Rmd to use
params
=
list
(
title
=
title
,
subtitle
=
subtitle
,
authors
=
authors
),
output_file
=
paste0
(
here
::
here
(
"docs"
,
f
),
".html"
)
output_file
=
paste0
(
here
::
here
(
"docs"
,
f
),
".html"
)
# where the output goes
)
}
# Set up ----
...
...
@@ -78,7 +78,7 @@ make(plan) # run the plan, re-loading data if needed
# Run the report ----
# run the report - don't do this inside the drake plan as
# drake can't track the .rmd file if it is not explicitly named
# drake can't
seem to
track the .rmd file if it is not explicitly named
makeReport
(
rmdFile
)
# Finish off ----
...
...
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