Skip to content

source from clipboard

3 messages · Brian Ripley, Adrian Dusa

#
Dear All,

Apologies for noob questions, under Linux (and Windows) I extensively used:
source("clipboard")
in order to paste commands without cluttering the R session.

Under Mac this has to be somehow different, because I get:
Error in file(file, "r", encoding = encoding) :
  cannot open the connection
In addition: Warning message:
In file(file, "r", encoding = encoding) :
  clipboard cannot be opened or contains no text

I assume this is general Mac behavior, but if it's related to my
locale then I will provide the relevant info.
Thanks in advance for any hint,
Adrian

PS: I do of course use Cmd+C under Mac to copy commands in the clipboard
#
?clipboard in R has a whole section on this.

Please do follow the posting guide and do your homework before 
posting.
On Sat, 12 Nov 2011, Adrian Dusa wrote:

            

  
    
#
On Sat, Nov 12, 2011 at 12:43, Prof Brian Ripley <ripley at stats.ox.ac.uk> wrote:
Got it.
Thank you,
Adrian