[Rd] Rd2dvi - script (PR#1029)

olefc@math.auc.dk olefc@math.auc.dk
Wed, 18 Jul 2001 15:14:23 +0200 (MET DST)


Full_Name: Ole Christensen
Version: 1.3.0
OS: Solaris
Submission from: (NULL) (130.225.48.2)


I have discovered a problem with script Rd2dvi for R-1.3.0 on our Solaris
machines.
When writing R CMD Rd2dvi Name_of_Package, then things go wrong with the 
conversion to Latex of the DESCRIPTION file in the package.

Having discussed the problem with our system administrator, he constructed a 
script illustrating the problem (see below: script a, and output b). 
It seems that our Solaris machines makes a further expansion in the shell
scripts 
than intended ( \\b  ->  \b  ->  <Backspace> ). 

We have also tested the script on a SunOS 4.1.2 and a Debian/GNU Linux 2.0.36 
machine, where everything worked fine.

script a:

#!/user/flemming/aa/sh

Rd_DESCRIPTION_to_LaTeX () {
  echo '\\begin{description}'
  echo "\\begin{description}"
  echo "\\raggedright{}"
  echo "\\end{description}"
}

touch b
Rd_DESCRIPTION_to_LaTeX >> b

------

output b:

\begin{description}
egin{description}

aggedright{}
\end{description}



-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._