R语言-shiny、knitr、printr、servr及tufte包

shiny

knitr

printr


# install.packages("printr")
# devtools::install_github('yihui/printr')

head(mtcars)
head(iris)
??sunflower

library(printr)

head(mtcars)
head(iris)
??sunflower

servr


# install.packages("servr")
# devtools::install_github('yihui/servr')

# library(servr)
# 创建一个网页服务器运行环境(指定相应目录)
# servr::httd()
# 创建一个rmd文件To网页文件html的通道
# servr::rmdv2()
# 网页服务器后台运行
# servr::rmdv2(daemon=TRUE)

tufte


# install.packages("tufte")
library(tufte)


title: "Tufte Handout"
subtitle: "An implementation in R Markdown"
author: "abdata"
date: "`r Sys.Date()`"
output:
  tufte::tufte_html: default
  tufte::tufte_handout:
    citation_package: natbib
    latex_engine: xelatex
  tufte::tufte_book:
    citation_package: natbib
    latex_engine: xelatex
bibliography: skeleton.bib
link-citations: yes
    
  
  {r fig-fullwidth, fig.width=10, fig.height=2, fig.fullwidth=TRUE, fig.cap="A full width figure.", warning=FALSE, cache=TRUE}

useful

posted @ 2017-07-26 14:47  银河统计  阅读(1576)  评论(0编辑  收藏  举报