[R] help(package)->sink()

From: Spencer Graves <spencer.graves_at_pdf.com>
Date: Sun 25 Jul 2004 - 03:06:02 EST

      I wanted to direct packageInfo to a file, so I could add comments, e.g., in MS Word. The following command stored the desired information in an object:

      mclustInfo <- help(package="mclust")

      Then "mclustInfo" displays it on my screen. To direct it to a file, I tried the following:

      sink("mclust.txt")
      mclustInfo
      sink()

      This sequence created an empty file "mclust.txt", while displaying 
mclustInfo on my screen. After a few more failed attempts, I gave up trying to be clever and copied the text from the screen into Word.

      Is this a bug, that sink does not capture the output of objects of class packageInfo?

      Best Wishes,
      spencer graves

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Sun Jul 25 03:14:31 2004

This archive was generated by hypermail 2.1.8 : Fri 18 Mar 2005 - 02:37:50 EST