This repository provides a basic template for generating PDF reports using R Markdown and other necessary tools. Below is a walkthrough of the directory structure and the purpose of each file and directory.
report-generator/
│
├── renv/
│ ├── .gitignore
│ ├── activate.R
│ ├── settings.dcf
│ └── settings.json
│
├── r/
│ └── data_wrangling.R
│
├── climate-reports/
│ └── june-report.Rmd
|
├── styling/
│ ├── .gitignore
│ ├── custom.scss
│ ├── macros.js
│ ├── slides.Rmd
│ ├── style-based-bootstrap-more.Rmd
│ └── style-based-bootstrap.Rmd
|
├── assets/
│ ├── cover.png
│ ├── emission_types.png
│ └── risk-types.png
│
├── .DS_Store
├── .Rprofile
├── .gitignore
├── LICENSE
├── Makefile
├── renv.lock
└── report-generator.Rproj
-
Clone the repository:
git clone <repository-url> cd report-generator
-
Initialize
renv
: Make sure you haverenv
installed. If not, install it first:install.packages("renv")
Then initialize
renv
:renv::init()
-
Restore the environment:
renv::restore()
-
To generate the PDF report, use the
Makefile
:make
-
To clean up generated files:
make clean
- Modify the
styling/slides.Rmd
file to customize the report slides. - Use
styling/custom.scss
for custom styling.
Contributions are welcome! Please fork this repository and submit a pull request.
This project is licensed under the MIT License. See the LICENSE file for details.