From bade5388641004718b83042d97aaaa5e75ab5498 Mon Sep 17 00:00:00 2001
From: "B.Anderson" <ba1e12@srv02405.soton.ac.uk>
Date: Thu, 18 Jun 2020 21:25:15 +0100
Subject: [PATCH] amended to suit new folder name

---
 Rmd/make_basicReport.R | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Rmd/make_basicReport.R b/Rmd/make_basicReport.R
index 89b69bd..1c9a017 100644
--- a/Rmd/make_basicReport.R
+++ b/Rmd/make_basicReport.R
@@ -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 ----
-- 
GitLab