Instead of "clipboard", Try,

read.table(pipe("pbpaste"), header = T, ...)

Likewise, when exporting data from R to other applications, you could use;

write.table(pipe("pbcopy"), ...)


This convention is said to be originated from the NeXT days, during which the 
clipboard was called the 'pasteboard.'

Thanks


-- 
Younsuk Lee, M.D, Ph.D.
Sent with Sparrow (http://www.sparrowmailapp.com/?sig)

Forwarded message:

> From: [email protected]
> To: [email protected]
> Date: Tuesday, June 28, 2011 9:22:04 AM
> Subject: [R-SIG-Mac] Read.delim on a Mac
> 
> I am beginning to set up R at home on my Macbook running Leopard 10.6
> and trying to mimic the workflow I use at work, on Windows. Here is my
> question...when I run 
> > read.delim("clipboard") I get the following
> Error in file(file, "rt") : cannot open the connection In addition:
> Warning message:
> In file(file, "rt") : clipboard cannot be opened or contains no text
> 
> Is there some basic problem with reading data in using the clipboard
> like this?
> 
> Thanks
> Jeff
> 
> Jeffrey D. Morris, Ph.D.
> Sanofi Pasteur
> 
> 
> 
> This communication, including any attachments, is intended solely for the use 
> of the addressee and may contain information which is privileged, 
> confidential, exempt from disclosure under applicable law or subject to 
> copyright. If you are not an intended recipient, any use, disclosure, 
> distribution, reproduction, review or copying is unauthorized and may be 
> unlawful. If you have received this transmission in error, please notify the 
> sender immediately. Thank you.
> 
> Cette communication,y compris les pieces jointes, est reservee a l'usage 
> exclusif du destinataire et peut contenir des informations privilegiees, 
> confidentielles, exemptees de divulgation selon la loi ou protegees par les 
> droits de publication. Si vous n'etes pas un destinataire, toute utilisation, 
> divulgation, distribution, reproduction, examen ou copie est non-autorisee et 
> peut etre illegale. Si vous avez recu cette communication par erreur, 
> veuillez aviser l'expediteur immediatement. Merci.
> 
> 
>  [[alternative HTML version deleted]]
> 
> _______________________________________________
> R-SIG-Mac mailing list
> [email protected] (mailto:[email protected])
> https://stat.ethz.ch/mailman/listinfo/r-sig-mac


        [[alternative HTML version deleted]]

_______________________________________________
R-SIG-Mac mailing list
[email protected]
https://stat.ethz.ch/mailman/listinfo/r-sig-mac

Reply via email to