Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
F
fridayFagPackets
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
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
Tom Rushby
fridayFagPackets
Commits
07fe334a
Commit
07fe334a
authored
4 years ago
by
Ben Anderson
Browse files
Options
Downloads
Patches
Plain Diff
added stub for next fridayFun
parent
93ed2e6a
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
2020_30_10_EPCs/carbonCosts.Rmd
+45
-0
45 additions, 0 deletions
2020_30_10_EPCs/carbonCosts.Rmd
2020_30_10_EPCs/makeFile.R
+25
-0
25 additions, 0 deletions
2020_30_10_EPCs/makeFile.R
with
70 additions
and
0 deletions
2020_30_10_EPCs/carbonCosts.Rmd
0 → 100644
+
45
−
0
View file @
07fe334a
---
params:
subtitle: ""
title: ""
authors: ""
title: '`r params$title`'
subtitle: '`r params$subtitle`'
author: '`r params$authors`'
date: 'Last run at: `r Sys.time()`'
output:
bookdown::html_document2:
self_contained: true
fig_caption: yes
code_folding: hide
number_sections: yes
toc: yes
toc_depth: 2
toc_float: TRUE
bookdown::pdf_document2:
fig_caption: yes
number_sections: yes
bookdown::word_document2:
fig_caption: yes
number_sections: yes
toc: yes
toc_depth: 2
fig_width: 5
bibliography: '`r path.expand("~/github/dataknut/refs/refs.bib")`'
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(data.table)
```
# R packages used
* rmarkdown [@rmarkdown]
* bookdown [@bookdown]
* knitr [@knitr]
* data.table [@data.table]
# References
This diff is collapsed.
Click to expand it.
2020_30_10_EPCs/makeFile.R
0 → 100644
+
25
−
0
View file @
07fe334a
makeReport
<-
function(f){
# default = html
rmarkdown
::
render(input = paste0(here::here("2020_30_10_EPCs"
,
f)
,
".Rmd")
,
params
=
list
(
title
=
title,
subtitle
=
subtitle,
authors
=
authors
)
,
output_file
=
paste0
(
here::here
(
"docs/"
)
, f,
".html"
)
)
# word
rmarkdown
::
render(input = paste0(here::here("2020_30_10_EPCs"
,
f)
,
".Rmd")
,
params
=
list
(
title
=
title,
subtitle
=
subtitle,
authors
=
authors
)
,
output_file
=
paste0
(
here::here
(
"docs/"
)
, f,
".docx"
)
,
output_format
=
"word_document"
)
}
# >> run report ----
rmdFile
<-
"carbonCosts"
# not the full path
title
=
"What can EPC data tell us about the domestic cost of carbon?"
subtitle
=
""
authors
=
"Ben Anderson"
makeReport(rmdFile)
\ 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