s-news
[Top] [All Lists]

Re: Writing to the clipboard

To: <sundar.dorai-raj@PDF.COM>
Subject: Re: Writing to the clipboard
From: "Michael Conklin" <mconklin@gfkcustomresearch.com>
Date: Mon, 26 Jan 2004 13:39:28 -0600
Cc: <s-news@wubios.wustl.edu>
I think you have duplicated it. In Splus 2000 and in the documentation
for Splus 6 the append = TRUE should not work  (and doesn't in 2000).  A
new write to the clipboard overwrites anything there. In your first
example you have the double copy happening.  If you change append to
FALSE you will get the same result, if you run the two write.table
commands successively without pasting.

Best regards,

Michael


****************************************
Michael Conklin
Sr. VP Analytic Services
GfK Custom Research Inc.
8401 Golden Valley Rd
Minneapolis, MN 55427
mconklin@gfkcustomresearch.com
763-542-0821 (Voice)
763-542-0864 (Fax)

>>> Sundar Dorai-Raj <sundar.dorai-raj@PDF.COM> 01/26/04 01:10PM >>>
Michael,
   I'm also using S-PLUS 6.2 on Win2K. I cannot duplicate your error:

 > x <- data.frame(A=1:2,B=1:2)
 > x
   A B
1 1 1
2 2 2
 > write.table(x, "clipboard", sep = ",")
 > write.table(x, "clipboard", sep = ",", append = TRUE)
 > # now paste
row.names,A,B
1,1,1
2,2,2
row.names,A,B
1,1,1
2,2,2
 > write.table(x, "clipboard", sep = ",")
 > # now paste
row.names,A,B
1,1,1
2,2,2
 > write.table(x, "clipboard", sep = ",")
 > # now paste
row.names,A,B
1,1,1
2,2,2

Regards,
Sundar

Michael Conklin wrote:

> I am using (migrating to) Splus 6.2 on Windows 2000 and on Windows
XP.
> 
> I have several functions written that write to the clipboard simply
> using write.table.  After switching to Splus 6.2 I am finding that
the
> documentation indicating that file="clipboard" and append=TRUE are
not a
> possible combination in write.table appears to be false. 
Unfortunately,
> it appears that no matter what the setting of append, the behavior
is
> the same as append=TRUE.  In other words, no matter what I do, I get
> multiple copies of the data in the  clipboard unless I paste the
data
> into some other application between my write.table statements.  This
> facility would actually be quite useful if it was anticipated, but
of
> course we have written functions (that work quite successfully in
Splus
> 2000) that assume that this behavior does not occur.
> 
> Has anyone else run into this behavior?  
> 
> Michael Conklin
> 
> 
> ****************************************
> Michael Conklin
> Sr. VP Analytic Services
> GfK Custom Research Inc.
> 8401 Golden Valley Rd
> Minneapolis, MN 55427
> mconklin@gfkcustomresearch.com 
> 763-542-0821 (Voice)
> 763-542-0864 (Fax)
> ===================================================================
> IMPORTANT CONFIDENTIALITY NOTICE: The documents and accompanying
> email communication contain confidential information belonging to
> the sender, GfK Custom Research Inc. and/or GfK Database Solutions,
> and are legally protected. If you are not the intended recipient,
> you are hereby notified that any disclosure, copying, distribution
> or the taking of any action in reliance on the contents of the 
> communicated information is strictly prohibited.
> ===================================================================
> 
> 
> --------------------------------------------------------------------
> This message was distributed by s-news@lists.biostat.wustl.edu.  To
> unsubscribe send e-mail to s-news-request@lists.biostat.wustl.edu
with
> the BODY of the message:  unsubscribe s-news

===================================================================
IMPORTANT CONFIDENTIALITY NOTICE: The documents and accompanying
email communication contain confidential information belonging to
the sender, GfK Custom Research Inc. and/or GfK Database Solutions,
and are legally protected. If you are not the intended recipient,
you are hereby notified that any disclosure, copying, distribution
or the taking of any action in reliance on the contents of the 
communicated information is strictly prohibited.
===================================================================



<Prev in Thread] Current Thread [Next in Thread>