Skip to content

Linux readClip #20

@trinker

Description

@trinker

I see that writeClip has an option to write to the Linux clipboard, however, readClip does not. Is this functionality going to exist for Linux in the readClip function as well?

readClip <- function(){
  OS <- Sys.info()["sysname"]

  cliptext <- switch(OS,
                   Darwin = {
                     con <- pipe("pbpaste")
                     text <- readLines(con)
                     close(con)
                     text
                   },
                   Windows = readClipboard(),
                   readLines("clipboard"))
    cliptext
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions