inst/doc/simple.R

## ----load trena, include=FALSE------------------------------------------------
library(trena)

## ----load limma, results='hide', message=FALSE--------------------------------
library(limma)

## ----load limma with prompt, prompt=TRUE, results='hide', message=FALSE-------
library(limma)
2 + 1

## ----just results, prompt=FALSE, message=FALSE, echo=FALSE, results="show"----
sprintf("variant %d", 2 + 3)

## ----tasteful data.frame, prompt=FALSE, message=FALSE, echo=TRUE, results="show"----
knitr::kable(mtcars[1:5,], caption='mtcars')

## ----tasteful data.frame no code, prompt=FALSE, message=FALSE, echo=FALSE, results="show"----
knitr::kable(mtcars[1:5,])

## ----show png file, eval=TRUE, echo=FALSE-------------------------------------
knitr::include_graphics("igvR-nfe2-regulation.png")

## -----------------------------------------------------------------------------
1+1
.4-.7+.3 # what? it is not zero!

## -----------------------------------------------------------------------------
plot(1:10)
hist(rnorm(1000))

## -----------------------------------------------------------------------------
strsplit('hello indented world', ' ')[[1]]

## -----------------------------------------------------------------------------
x = 1:10
rev(x^2)

Try the trena package in your browser

Any scripts or data that you put into this service are public.

trena documentation built on Nov. 15, 2020, 2:07 a.m.