On 13/11/2014, 10:28 PM, Jeff Newmiller wrote: >> Which text editor can actually display _^H correct? > > Not aware of any. It is from very old line printer behavior, which most > (all?) printers can still support even though few computers are set up to > utilize it.
The "less" command in Unix-alikes generally supports it for display. Duncan Murdoch > --------------------------------------------------------------------------- > Jeff Newmiller The ..... ..... Go Live... > DCN:<jdnew...@dcn.davis.ca.us> Basics: ##.#. ##.#. Live Go... > Live: OO#.. Dead: OO#.. Playing > Research Engineer (Solar/Batteries O.O#. #.O#. with > /Software/Embedded Controllers) .OO#. .OO#. rocks...1k > --------------------------------------------------------------------------- > Sent from my phone. Please excuse my brevity. > > On November 13, 2014 6:41:05 PM PST, Zheng Da <zhengda1...@gmail.com> wrote: >> Thank you. Great help! >> Given your information, we can generate text files without _^H with >> the following command: >> echo "tools::Rd2txt(\"$input_file\", out=\"$output_file\", >> options=list(underline_titles=FALSE))" | R --no-save >> It's kind tedious though. >> >> I'm just curious. Which text editor can actually display _^H correct? >> I normally use vim. I also tried gedit. I even tried a web browser >> (chrome). >> >> Da >> >> On Thu, Nov 13, 2014 at 8:29 PM, David Winsemius >> <dwinsem...@comcast.net> wrote: >>> >>> On Nov 13, 2014, at 11:51 AM, Zheng Da wrote: >>> >>>> Hello, >>>> >>>> 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? >>> >>> I think your (unstated) editor is displaying backspaces with ^H. The >> Section Header convention in Rd files is with interspersed underscores >> so they look like: >>> >>> _ D_ e_ s_ c_ r_ i_ p_ t_ i_ o_ n: >>> >>> The ^H's are apparently being put in to "erase" or squeeze together >> the text separated by <underscores> and your editor is not handling it >> in the manner expected. >>> >>>> >>>> Thanks, >>>> Da >>>> >>>> ______________________________________________ >>>> R-help@r-project.org mailing list >>>> https://stat.ethz.ch/mailman/listinfo/r-help >>>> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >>>> and provide commented, minimal, self-contained, reproducible code. >>> >>> David Winsemius >>> Alameda, CA, USA >>> >> >> ______________________________________________ >> R-help@r-project.org mailing list >> https://stat.ethz.ch/mailman/listinfo/r-help >> PLEASE do read the posting guide >> http://www.R-project.org/posting-guide.html >> and provide commented, minimal, self-contained, reproducible code. > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. > ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.