knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "inst/vignette-supp/", echo=TRUE, warning=FALSE, message=FALSE, tidy=TRUE )
An R package for the estimation of co-heritability of phenotypic traits in bacteria.
The development version is available on github. It can be installed with devtools
install.packages("remotes") remotes::install_github("tienmt/coher")
If you would like to also build the vignette with your installation run:
remotes::install_github("tienmt/coher", build_vignettes = TRUE)
Run coher
# install.packages("coher") library(coher) data('coher_example') result <- coher(coher_example$Y, coher_example$X)
intro_rmd <- 'vignettes/introduction.Rmd' raw_rmd <- readLines(intro_rmd) # remove yaml yaml_lines <- grep("---", raw_rmd) # remove appendix (session info) appendix <- grep("Session", raw_rmd) compressed_rmd <- raw_rmd[c(-seq(yaml_lines[1], yaml_lines[2], by = 1), -seq(appendix, length(raw_rmd)))] writeLines(compressed_rmd, "child.Rmd")
if (file.exists("child.Rmd")) { file.remove("child.Rmd") }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.