PAUP* 全称Phylogenetic Analysis Using Parsimony (and Other Methods)是美国佛罗里达大学的David Swofford博士编写的,是用最大简约法建立进化树最重要的软件,同时与ModelTest软件一起,是进化模型筛选等的必备软件,也可以进行如极大似然法建树及其他分析。在同类软件中,几乎拥有最快的运行速度,性能卓越。PAIP能在MacOS, Windows,Unix等平台上运行。目前最新版本为4beta10
documentclass[a4paper]{article} title{How to use Sweave? } author{Jinlong Zhang} begin{document} maketitle In this example we use hclust() in R to perform a cluster analysis into a LaTeX{} document: <<>>= x<-c(1,2,6,8,11) dim(x)<-c(5,1) d<-dist(x) d hc<-hclust(d, "single") dend<-as.dendrogram(hc) @ the dendrograms are also included: begin{center} <<fig=TRUE,echo=FALSE>>= par(mfrow = c(2, 2),mar = c(4,3,1,2)) plot(dend) plot(dend, nodePar=list(pch = c(1,NA), cex=0.8, lab.cex=0.8), type = "t", center=TRUE) plot(dend, edgePar=list(col = 1:2, lty = 2:3), dLeaf=1, edge.root = TRUE) plot(dend, nodePar=list(pch = 2:1, cex=.4*2:1, col=2:3), horiz=TRUE) @ end{center} end{document}
>setwd("C:\\Jinlong\\package") >source("TEMP.R") >package.skeleton(name="TEMP", list = ls()) Creating directories ... Creating DESCRIPTION ... Creating NAMESPACE ... Creating Read-and-delete-me ... Saving functions and data ... Making help files ... Done. Furthersteps are described in'./TEMP/Read-and-delete-me'. >
Package:TEMP Type:Package Title:What the package does (short line) Version:1.0 Date:2016-08-15 Author:Who wrote it Maintainer:Who to complain to <yourfault@somewhere.net> Description:More about what it does (maybe more than one line) License:What license is it under?
冒号右边的内容需要修改。其中不能有非ASCII码的字符。
如果程序包中使用了其它程序包的函数或者数据,则应该在Description文件中加入Suggests或者Depends, imports某程序包的选项,详情参见 Writing R Extensions中的 1.1.3 Package Dependencies 一节。
编写DESCRIPTION文件的相信指南,请参考 Writing R Extensions 的 1.1.1 The DESCRIPTION file 一节。