From ripley at stats.ox.ac.uk  Thu Aug 31 14:22:11 2006
From: ripley at stats.ox.ac.uk (Prof Brian Ripley)
Date: Thu, 31 Aug 2006 13:22:11 +0100 (BST)
Subject: [Rd] Suggestion for read.table()
In-Reply-To: <C07BB4B4-3440-43C1-BAD1-4F2433C17513@r-project.org>
References: <6769639.199881156968166072.JavaMail.root@vms070.mailsrvcs.net>
	<Pine.LNX.4.64.0608302110340.19806@gannet.stats.ox.ac.uk>
	<C07BB4B4-3440-43C1-BAD1-4F2433C17513@r-project.org>
Message-ID: <Pine.LNX.4.64.0608311319460.21681@gannet.stats.ox.ac.uk>

On Thu, 31 Aug 2006, Simon Urbanek wrote:

> 
> On Aug 30, 2006, at 10:15 PM, Prof Brian Ripley wrote:
> 
> >On Wed, 30 Aug 2006, gilescrane at verizon.net wrote:
> >
> > >However, direct reading might be a good option?
> >
> >See ?textConnection for how to do this.
> >
> >inp <- "  x   y  z
> >    1   2  3
> >    4   5  6
> >"
> >read.table(textConnection(inp), header=TRUE)
> >
> >The most common case is wanting to paste in, and we have "clipboard" for
> >that (at least on Windows on X11: it would be a nice addition on Aqua).
> >
> 
> On Mac OS X (Aqua or cmd line) you can use clipboard input like this:
> read.table(pipe("pbpaste"))
> It seems to be quite popular especially in conjunction with Excel...

Yes, I know (I even documented in ?connections).  What would be nice is if

read.table("clipboard")

worked as it does on the other platforms.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595




[Rd] Suggestion for read.table()
Prof Brian Ripley