[R] "R CMD Rd2txt" generate "_^H" for in all section titles
murdoch.duncan at gmail.com
Fri Nov 14 11:38:12 CET 2014
On 13/11/2014, 8:16 PM, Rolf Turner wrote:
> On 14/11/14 13:59, Duncan Murdoch wrote:
>> On 13/11/2014, 2:51 PM, Zheng Da wrote:
>>> I'm trying to generate plain text from the .Rd files. I run "R CMD
>>> Rd2txt xx.Rd -o xx.txt" to get the plain text file. When I open the
>>> text file, I see "_^H" in front of each character in all section
>>> titles. I can't figure out where the problem is. If I don't specify -o
>>> argument, "R CMD Rd2txt" prints on the standard output correctly. What
>>> should I do to output everything correctly to a file?
>> That's the old-fashioned way to do underlining. Set the
>> "underline_titles" option (see ?Rd2txt_options) to FALSE if you don't
>> want it.
> Tried it; doesn't work. My hunch is that Rd2txt_options() only has
> impact on the R function Rd2txt() and has no impact on the output of
> R CMD Rd2txt ....
Yes, you're right. R CMD Rd2txt is effectively an abbreviation of a
call to Rd2txt() that doesn't set the options. I didn't pay attention
to the fact that Zheng was using "R CMD Rd2txt".
More information about the R-help