knitr::opts_chunk$set( collapse = TRUE, comment = "#>" )
library(RNAseqStat)
fl <- list.files("../dev/example_output/") modules <- fl[grep("4-EnrichKEGG.*.pdf",fl)] bitmap_l <- lapply(modules, function(x){ pdftools::pdf_render_page(glue::glue("../dev/example_output/{x}"), page = 1, dpi = 300) }) basenames <- gsub(pattern = "\\.pdf$", "", modules) names(bitmap_l) <- basenames tmp <- lapply(seq_along(bitmap_l), function(x){ png::writePNG(bitmap_l[[x]], glue::glue("{names(bitmap_l)[[x]]}.png")) })
knitr::include_graphics("4-EnrichKEGG_up_and_down_KEGG.png")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.