I use read.table(file="clipboard",...) a lot in s-plus (under windows 2000), but it does not seem to work in R (and is not in the help screen for read.table). Am I missing something? Would this ability be hard to add? Thanks. Dave Parkhurst
On Mon, 20 Jan 2003, David Parkhurst wrote:> I use read.table(file="clipboard",...) a lot in s-plus (under windows 2000), but it > does not seem to work in R (and is not in the help screen for read.table). Am I > missing something? Would this ability be hard to add?Yes, it was hard to add, but it already there in R-devel (to be 1.7.0). In 1.6.2 you can use read.table(textConnection(readClipboard), ...) -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595
On Mon, 20 Jan 2003, Prof Brian D Ripley wrote:> On Mon, 20 Jan 2003, David Parkhurst wrote: > > > I use read.table(file="clipboard",...) a lot in s-plus (under windows 2000), but it > > does not seem to work in R (and is not in the help screen for read.table). Am I > > missing something? Would this ability be hard to add? > > Yes, it was hard to add, but it already there in R-devel (to be 1.7.0). In > 1.6.2 you can use > > read.table(textConnection(readClipboard), ...)Oops, the cut-and-paste failed: read.table(textConnection(readClipboard()), ...) -- 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 272860 (secr) Oxford OX1 3TG, UK Fax: +44 1865 272595