Releases: mdlincoln/clipr
Releases · mdlincoln/clipr
clipr 0.3.0
- 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
- Introduces
read_clip_tbl
, a convenience function that takes tab-delimited
text fromread_clip
(such as that copied from a spreadsheet) and parses it
withread.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 usingcapture.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
- Several changes to
write_clip
- The separator to be used when writing a character vector can now be
explicitly declared usingbreaks
.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. Optionobject_type="auto"
will check the object type to decide on the
correct formatting, or the user may explicitly stateobject_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 viawrite_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.
- clipr will default to sane system-specific options for
- The separator to be used when writing a character vector can now be
- Introduces
clear_clip
, a wrapper function forwrite_clip("")
for easy
clearing of the system clipboard.
clipr 0.1.1
- Bug fix that removes the explicit test for "Linux" in favor of a check for "xclip" or "xsel"
clipr 0.1.0
clipr introduces simple utility functions to read and write from the system clipboards of OS X, Linux, and Windows.