楼主: toughxiaoqiang
1476 0

介绍一个文字编程的软件包——statweave [推广有奖]

  • 1关注
  • 21粉丝

已卖:2151份资源

学科带头人

5%

还不是VIP/贵宾

-

威望
0
论坛币
36063 个
通用积分
458.0378
学术水平
90 点
热心指数
85 点
信用等级
64 点
经验
103909 点
帖子
311
精华
0
在线时间
2890 小时
注册时间
2015-9-20
最后登录
2026-1-6

楼主
toughxiaoqiang 发表于 2015-9-30 18:27:58 |AI写论文

+2 论坛币
k人 参与回答

经管之家送您一份

应届毕业生专属福利!

求职就业群
赵安豆老师微信:zhaoandou666

经管之家联合CDA

送您一个全额奖学金名额~ !

感谢您参与论坛问题回答

经管之家送您两个论坛币!

+2 论坛币

功能和sweave类似,但更加全面,可以对包括R, SAS, Stata, S-Plus,matlab,maple等多种语言进行文字编程。下面是statweave手册上的一段介绍文字。


STATWEAVE is an extension of some previous literate-programming packages (SWEAVE,
SASWEAVE, and ODFWEAVE) for statistics. Its intent is to provide portable software that
can integrate code and documentation for a large variety of statistical (and nonstatistical)
languages and file formats, and also to provide for extensibility so that a user can add
more file formats and languages.
STATWEAVE is written in Java, providing easy portability across platforms. As currently
implemented, STATWEAVE has only a command-line interface, but a graphical interface
could be easily added. A Java virtual machine (JVM) is already installed on most
people’s systems, and the decision to use Java also separates STATWEAVE from requiring
the user to have any particular one of the statistical packages it supports.
In its current implementation, the supported languages include R, SAS, Stata, S-Plus,
Maple, LATEX, DOS, and UNIX; and more can easily be added. The currently supported file
formats are .tex (using an extension of SWEAVE’s LATEX syntax) and .odt (the Open Document
Format XML specification currently implemented in OpenOffice). The probable
next developments for file formats would be Word 2007’s .docx format, and extending
the .tex format to support SWEAVE’s noweb syntax.
To use STATWEAVE, one prepares a source file in the same basic format as the intended
output file. Computer code is added to this file, and marked in some way so that
STATWEAVE can tell that it is code in a certain language. These marked blocks of code are
called “code chunks.” Processing via STATWEAVE involves extracting and running the
code chunks in the appropriate program(s), and creating an output document that contains
all the materials in the source file, but embedding the code listings, output listings,
and any graphics produced in place of the code chunks. STATWEAVE figures out which
programs it needs to run, and runs them in order of first appearance in the source file.
Section 2 outlines how to install STATWEAVE on your system. Section 3 explains how
to run STATWEAVE from the command line, and the command-line options that are available.
In Section 4, we describe how to prepare a source file for STATWEAVE. Section 5
details the various options that can be specified in the source file for controlling how the
code chunks are processed and displayed. STATWEAVE uses a configuration file that defines
defaults for processing, specifies what languages are supported, provides paths to
these languages’ implementations on the local machine, etc. Section 7 explains the construction
of this file. Finally, STATWEAVE is designed to be extensible, and a separate
document1 describes the Java class structure and how various interfaces can be implemented
and configured to add support for new languages or file formats.

二维码

扫码加我 拉你入群

请注明:姓名-公司-职位

以便审核进群资格,未注明则拒绝

关键词:statweave 文字编程 EAV AVE 软件包 STATWEAVE literate-programming 文字编程 sweave

已有 1 人评分论坛币 收起 理由
oliyiyi + 20 精彩帖子

总评分: 论坛币 + 20   查看全部评分

您需要登录后才可以回帖 登录 | 我要注册

本版微信群
加好友,备注jltj
拉您入交流群
GMT+8, 2026-1-7 11:17