Re: [R] Eliminating "[...]" from print

From: Ted Harding <Ted.Harding_at_manchester.ac.uk>
Date: Mon, 02 Jun 2008 12:07:48 +0100 (BST)


On 02-Jun-08 10:33:19, LANGOHR, KLAUS wrote:
> Ted,
> You may also want to try the function report of the npmc package.
> For example,
>
> report("Have a nice day!", style="underline", char="*")
>
> gives
>
> Have a nice day!
> ****************
>
> Regards,
> Klaus.

Thanks, Klaus! The trick in that case, from the code in report.R in the npmc package, is to constrict the ouput as a 1-column matrix 'm', whose rows are the intended lines of text, and the set

  rownames(m) <- ""
  colnames(m) <- ""

which indeed does eliminate the "[1]" etc. Interesting ... ! Best wishes,
Ted.



E-Mail: (Ted Harding) <Ted.Harding_at_manchester.ac.uk> Fax-to-email: +44 (0)870 094 0861
Date: 02-Jun-08                                       Time: 12:07:45
------------------------------ XFMail ------------------------------

______________________________________________
R-help_at_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. Received on Mon 02 Jun 2008 - 11:11:45 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Mon 02 Jun 2008 - 11:30:35 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive