当前位置: 首页 > 工具软件 > tufte-latex > 使用案例 >

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

洪浩
2023-12-01

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

转载于:https://www.cnblogs.com/cloudtj/articles/7239637.html

 类似资料: