Skip to content

Commit

Permalink
Fix file location of Report.Rmd when installing with devtools::instal…
Browse files Browse the repository at this point in the history
…l_github()
  • Loading branch information
ChrisBeeley committed Mar 17, 2021
1 parent 5f89617 commit 2819195
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions R/mod_report_builder.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,13 @@ mod_report_builder_server <- function(id, filter_sentiment, filter_data,
data = filter_data()
)

rmarkdown::render("report.Rmd", output_format = "word_document",
output_file = "report.docx",
quiet = TRUE, params = params,
envir = new.env(parent = globalenv())
rmarkdown::render(
system.file("report.Rmd",
package = "experiencesdashboard"),
output_format = "word_document",
output_file = "report.docx",
quiet = TRUE, params = params,
envir = new.env(parent = globalenv())
)

# copy docx to 'file'
Expand Down
File renamed without changes.

0 comments on commit 2819195

Please sign in to comment.