From dcec3a9417960d1f0aa318e219ff157c11cbdc6f Mon Sep 17 00:00:00 2001 From: Dan Knight Date: Wed, 15 Feb 2023 17:45:31 -0800 Subject: [PATCH 1/4] Base CEV report Rmd --- inst/CEV.report.Rmd | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 inst/CEV.report.Rmd diff --git a/inst/CEV.report.Rmd b/inst/CEV.report.Rmd new file mode 100644 index 0000000..8817dda --- /dev/null +++ b/inst/CEV.report.Rmd @@ -0,0 +1,16 @@ +--- +params: + title: + author: + date: +title: '`r params$title`' +author: '`r params$author`' +date: '`r params$date`' +output: pdf_document +--- + +# Tree + +# Mutation Assignment Heatmap + +# Clone Summary Heatmap From fb93f4eb4b3f51baa59630e8ed5aa5511af77e91 Mon Sep 17 00:00:00 2001 From: Dan Knight Date: Wed, 15 Feb 2023 17:45:46 -0800 Subject: [PATCH 2/4] Basic report function --- R/CEV.report.R | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 R/CEV.report.R diff --git a/R/CEV.report.R b/R/CEV.report.R new file mode 100644 index 0000000..b12b432 --- /dev/null +++ b/R/CEV.report.R @@ -0,0 +1,18 @@ +CEV.report <- function( + output.filename, + title, + author, + date = NULL + ) { + report.params <- list( + title = title, + author = author, + date = if (!is.null(date)) date else Sys.Date() + ); + + rmarkdown::render( + 'inst/test.Rmd', + output_file = output.filename, + params = report.params + ); + } From 4ca62d148e95fd61cac004efc8c81587ed18950f Mon Sep 17 00:00:00 2001 From: Dan Knight Date: Wed, 15 Feb 2023 17:53:33 -0800 Subject: [PATCH 3/4] Update changelog --- DESCRIPTION | 4 ++-- NEWS | 7 +++++++ 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/DESCRIPTION b/DESCRIPTION index a73855f..957aa89 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -1,7 +1,7 @@ Package: CancerEvolutionVisualization Title: Publication Quality Phylogenetic Tree Plots -Version: 1.0.1 -Date: 2022-10-03 +Version: 1.1.0 +Date: 2023-02-15 Authors@R: c( person("Paul Boutros", role = "cre", email = "PBoutros@mednet.ucla.edu"), person("Adriana Salcedo", role = "aut"), diff --git a/NEWS b/NEWS index 111a773..3146a72 100644 --- a/NEWS +++ b/NEWS @@ -1,3 +1,10 @@ +CancerEvolutionVisualization 1.1.0 2023-02-15 (Dan Knight)i + +ADDED +* CEV report template and public function + + +-------------------------------------------------------------------------- CancerEvolutionVisualization 1.0.1 2022-10-03 (Dan Knight) UPDATE From 88fafa8220cf3b6e9308394b25b0319c75028a4b Mon Sep 17 00:00:00 2001 From: Dan Knight Date: Wed, 15 Feb 2023 17:57:46 -0800 Subject: [PATCH 4/4] Update dependencies --- DESCRIPTION | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/DESCRIPTION b/DESCRIPTION index 957aa89..a24945d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -19,7 +19,8 @@ Imports: plyr, grDevices, utils, - stringr + stringr, + rmarkdown Suggests: testthat, knitr