Skip to content

Commit

Permalink
added test to display author email only if specified
Browse files Browse the repository at this point in the history
  • Loading branch information
jvanheld committed Sep 23, 2018
1 parent cdab856 commit 0204801
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion scripts/RSnakeChunks/R/rna-seq_analysis.R
Original file line number Diff line number Diff line change
Expand Up @@ -211,12 +211,19 @@ RNAseqAnalysis <- function(countFile,

report.socket <- file(rmd.report)

if (is.null(parameters$email)
|| (parameters$email == "")
|| (parameters$email == "[AUTHOR_EMAIL]")) {
author.email <- ""
} else {
author.email <- paste("<", parameters$email, ">")
}

Rmd.header <- paste(
sep = '',
'---
title: "', parameters$title,'"
author: "', parameters$author, ' <', parameters$author_email, '>"
author: "', parameters$author, author.email, '"
date: Last update:`r format(Sys.time())`
output:
html_document:
Expand Down

0 comments on commit 0204801

Please sign in to comment.