Skip to content

Releases: mdlincoln/clipr

clipr 0.3.0

27 Nov 20:19
Compare
Choose a tag to compare
  • Introduces clipr_available which checks to see if the system clipboard is
    writeable/readable. This may be useful if you are developing a package that
    relies on clipr and need to ensure that it will skip tests on machines (e.g.
    CRAN, Travis) where the system clipboard may not be available. Thank you to
    @jennybc for this suggestion.
  • Implements genuine testing of clipr functionality with thanks to some deft
    environment variable settings added by @jennybc.
  • Two Rstudio addins: one to copy the value returned when a highlighted
    expression is evaluated, and another that copies the console output.

clipr 0.2.1

24 Jun 01:56
Compare
Choose a tag to compare
  • Introduces read_clip_tbl, a convenience function that takes tab-delimited
    text from read_clip (such as that copied from a spreadsheet) and parses it
    with read.table. Thank you to Steve Simpson (@data-steve) for the original PR.
  • write_clip(object_type = "table") has a new internal implementation (writing
    to a temporary file rather than using capture.output) which should
    dramatically shorten the time it takes to write very large tables to the
    clipboard. Thank you to @r2evans for this suggestion.

clipr 0.2.0

08 Oct 15:24
Compare
Choose a tag to compare
  • Several changes to write_clip
    • The separator to be used when writing a character vector can now be
      explicitly declared using breaks. breaks=NULL will default to
      system-specific line breaks for both vectors and tables.
    • write_clip will default to formatting data.frames and matricies with
      write.table, allowing easy pasting of tabular objects into programs like
      Excel. Option object_type="auto" will check the object type to decide on the
      correct formatting, or the user may explicitly state object_type="table" or
      object_type="character".
      • clipr will default to sane system-specific options for write.table(),
        however you may pass any custom desired options via write_clip
      • return_new=TRUE (the default behavior) will return the formatted
        character string that was passed to the system clipboard, while
        write_clip(return_new=FALSE) will return the original object.
  • Introduces clear_clip, a wrapper function for write_clip("") for easy
    clearing of the system clipboard.

clipr 0.1.1

04 Sep 20:31
Compare
Choose a tag to compare
  • Bug fix that removes the explicit test for "Linux" in favor of a check for "xclip" or "xsel"

clipr 0.1.0

02 Sep 14:08
Compare
Choose a tag to compare

clipr introduces simple utility functions to read and write from the system clipboards of OS X, Linux, and Windows.