Skip to content

how to modify and compile R sourse codes

3 messages · Zhongming Yang, Uwe Ligges, David Whiting

#
Zhongming Yang wrote:

            
The "R Installation and Administration" manual of R-2.1.0 gives not only 
suggestions: it provides all the details on the tools required! The 
manual "Writing R Extensions" is relevant as well.

Uwe Ligges
#
Zhongming Yang <zhongmingyang at yahoo.com> writes:

You can get the source code from the source package and modify
it. You'll have to read the relevant documentation about the tools you
need to compile it---see the archives, there was a discussion recently
about this, and see the documenation that comes with R.  I don't use
Windows so I can't give any more advice.

Depending on what you need to do you might find that what you need is
already in the CVS version of Hmisc. The code was added recently and
is mentioned here:

http://biostat.mc.vanderbilt.edu/twiki/pub/Main/StatReport

A PDF with a few simple examples (created while developing and testing
the code) are shown here:

http://biostat.mc.vanderbilt.edu/twiki/pub/Main/StatReport/latexFineControl.pdf

The new options allow you to use any latex command (declaration) to
format row and column names, row and column group labels, and each
cell of a table individually.  Defining new commands in the preamble
of your LaTeX document you can great all sorts of splendid (and
awful!)  combinations of formats.

The current version (3.0-5) has options to format the row and column
group labels (note that in the CVS version the option name for the
column group labels has changed).

In case you are not aware of it I should mention that the Sweave
function in the tools package is wonderful for creating automated
reports.

HTH

David