Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
  • D datautils
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Analytics
    • Analytics
    • CI/CD
    • Repository
    • Value stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • bioinfo
  • datautils
  • Issues
  • #5

Closed
Open
Created Mar 09, 2020 by domingue@domingueMaintainer

Bug: rend.R creates two yaml headers in pandoc 2.9

I noticed that when creating reports the resulting html would sometimes contain an extra header (see images in Reprex). This behaviour depended on the environment in which rend.R was called (conda env dge_BioC3.8 vs vanilla bash in falcon vs local bash), but not on the package versions of rmarkdown or knitr.

Ultimately I traced this behaviour to the pandoc version in use. This is a bug created in pandoc v2.9 and as long as we use v2.5 the reports are generated as expected. This might need to be investagated further if we we ever need to upgrade pandoc, but not critical for the time being.

Reprex

pandoc 2.5

conda create -n pandoc_2.5 --yes -c conda-forge pandoc=2.5
conda activate pandoc_2.5
# conda install

rend.R -e test_header.R

Output file has the expected header: pandoc_2.5

pandoc 2.9

conda create -n pandoc_2.9.2 --yes -c conda-forge pandoc=2.9.2
conda activate pandoc_2.9.2
# conda install

rend.R -e test_header.R

Output report has two separated headers:

pandoc_2.9


test_header.R:

#!/usr/bin/env Rscript

#' # Differential Expression Analysis
#'
#' Contents
#'
#' - [Data Preparation](#data-preparation)
#' - [Quality Control](#quality-control)
#'     - [Size Factors](#size-factors)
#'     - [Global Dispersion Model](#global-dispersion-model)
#' - [PCA and Clustering](#pca-and-clustering)
#' - [Differential Expression Test](#differential-expression-test)
#'     - [MA and Volcano plots](#ma-and-volcano-plots)
#'     - [Count Outlier Analysis](#count-outlier-analysis)
#' - [Hits Summary](#hits-summary)
#' - [Exported Data](#exported-data)
#'

# to rebuild toc do knitr::spin("featcounts_deseq_mf.R", FALSE)

#' Created by: `r system("whoami", intern=T)`
#'
#' Created at: `r format(Sys.Date(), format="%B %d %Y")`

plot(1:10)
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information
Assignee
Assign to
Time tracking