clipr 0.8.0
CRAN release: 2022-02-21
- Add handlers for using the clipboard on systems using Wayland via wl-clipboard. Thank you to @nacnudus for the PR.
- For R >= 4.2,
write_clip()calls on Windows are modified to work well with R’s shift to supporting UTF-8 as a native encoding on Windows. Thank you to @yutannihilation for the PR. Read more here: https://github.com/mdlincoln/clipr/issues/62 - Moved CI off of Travis and on to GitHub Actions
- Clipr now has a pkgdown site at https://matthewlincoln.net/clipr/
clipr 0.7.1
CRAN release: 2020-10-08
- Call xsel with the
--outputflag, which prevents RStudio from hanging when calling clipr functions on a system running certain Linux window managers. Thank you to @cgillespie and @kevinushey for identifying the bug and the solution, and to @hannahcgunderman for help in testing.
clipr 0.7.0
CRAN release: 2019-07-23
Thank you to @jennybc for prompting these changes:
- Before attempting to read/write form the clipboard,
clipr_available()will first explicitly check if it is being run non-interactively, and if so, if theCLIPR_ALLOWenvironment variable has been set. This will hopefully prevent starting spurious Linux processes during CRAN tests. - Out of an abundance of caution,
read_clip()now does the same interactive/envvar check thatwrite_clip()does. - Some documentation clarifications
clipr 0.6.0
CRAN release: 2019-04-15
Thank you to @wangyuchen for making the following suggestions:
To make clipr more pipe-friendly,
write_clip()now defaults toreturn_new = FALSE, and will instead return the initial object that was passed in. To get the old behavior, passreturn_new = TRUEIn an effort to make
write_clip()andread_clip_tbl()more symmetrical,write_clip()now defaults to writing out row and column names when they exist.Introduces
write_last_clip(), a wrapper function forwrite_clip(.Last.value)
clipr 0.5.0
CRAN release: 2019-01-11
To comply with CRAN policy,
write_clip()will now error by default if run in a non-interactive session. Non-interactive use must be explicitly enabled by setting an environment variableCLIPR_ALLOW=TRUE.Documented that the default behavior when writing matrices to
write_clip()iscol.names = FALSE
clipr 0.4.1
CRAN release: 2018-06-23
- Correct a formatting error by adding and separation character to tables when they are being written with rownames.
clipr 0.4.0
CRAN release: 2017-11-03
- Introduces
dr_clipr(), which gives informative suggestions for software and configuration requirements when accessing the clipboard on X11-based systems.
clipr 0.3.3
CRAN release: 2017-06-19
- Due to poor testing and configuration options, clipr was not delivering on its promised support for xsel :( This has now been fixed, with more complete Travis tests, and some core fixes by @milesmcbain.
clipr 0.3.2
CRAN release: 2017-01-09
Suppress an erroneous warning on OS X / X11 systems when trying to write an empty string to the clipboard.
Fix error when
NAis passed towrite_clip(). This will now write"NA"to the clipboard.Fix error when passing
NULLor an empty vector (e.g.character(0)). This will now write""to the clipboard.
clipr 0.3.1
CRAN release: 2016-12-02
Fixes a breaking bug that caused
clipr_availableto erroneously returnFALSE. Thank you to @krivit for catching this.Introduces better testing of
clipr_availableto properly evaluate it on Travis CI.
clipr 0.3.0
CRAN release: 2016-11-19
-
Introduces
clipr_availablewhich 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
CRAN release: 2016-11-19
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
CRAN release: 2016-11-19
Several changes to
write_clip- The separator to be used when writing a character vector can now be explicitly declared usingbreaks.breaks=NULLwill default to system-specific line breaks for both vectors and tables. -write_clipwill default to formatting data.frames and matrices withwrite.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"orobject_type="character". - clipr will default to sane system-specific options forwrite.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, whilewrite_clip(return_new=FALSE)will return the original object.Introduces
clear_clip, a wrapper function forwrite_clip("")for easy clearing of the system clipboard.
clipr 0.1.1
CRAN release: 2016-11-19
- Bug fix that removes the explicit test for “Linux” in favor of a check for “xclip” or “xsel”