Skip to content
Prev 14419 / 63424 Next

TeXmacs and R 2.0.0

"M. Edward Borasky" <znmeb@cesmail.net> writes:
Funny you should chime in right now. I was just thinking of TeXmacs in
connection with ODS and the SAS/R discussion over on R-help.
<pedantic>
  That's a 
    <strong>
         PACKAGE
    </strong>
  !!
</pedantic>

This is of course the Wrong Way. The Right Way (or one of them) is to
provide a source package that can be installed using R CMD INSTALL on
whatever system the user has, and fixed up to meet the changing
requirements of the R installer (which are usually backwards
compatible). Even better, maintain said package at CRAN so that it
will be automatically checked against the current patch and
development versions and get built for devtool-challenged operating
systems.
Yup, you'll need the INSTALL. The 'R CMD build' just creates a source
package based on the source directory, which you effectively
reverse-engineered out of the (in principle) binary install. But why
not '-l /usr/share/TeXmacs/plugins/r/r/'?

BTW, last I checked, the TeXmacs plugin did have a rather peculiar
habit of opening one R session and using that for all subsequent
access, no matter where they occurred in the text. This can have some
peculiar effects with a stateful system like R (using a variable
before it was calculated, redoing a calculation but not code that
depends on it further along in the text, etc.). Is this still so? A
more Sweave-like approach would be highly desirable.