Package clipr. June 23, 2018

Similar documents
Package datapasta. January 24, 2018

Package fastdummies. January 8, 2018

Package robotstxt. November 12, 2017

Package jstree. October 24, 2017

Package readxl. April 18, 2017

Package cattonum. R topics documented: May 2, Type Package Version Title Encode Categorical Features

Package datasets.load

Package ECctmc. May 1, 2018

Package spark. July 21, 2017

Package lexrankr. December 13, 2017

Package canvasxpress

Package raker. October 10, 2017

Package bigreadr. R topics documented: August 13, Version Date Title Read Large Text Files

Package mdftracks. February 6, 2017

Package RODBCext. July 31, 2017

Package messaging. May 27, 2018

Package geojsonsf. R topics documented: January 11, Type Package Title GeoJSON to Simple Feature Converter Version 1.3.

Package validara. October 19, 2017

Package tibble. August 22, 2017

Package jdx. R topics documented: January 9, Type Package Title 'Java' Data Exchange for 'R' and 'rjava'

Package cli. November 5, 2017

Package sankey. R topics documented: October 22, 2017

Package strat. November 23, 2016

Package deductive. June 2, 2017

Package tensorflow. January 17, 2018

Package gifti. February 1, 2018

Package loggit. April 9, 2018

Package rmatio. July 28, 2017

Package dbx. July 5, 2018

Package postgistools

Package chunked. July 2, 2017

Package pwrab. R topics documented: June 6, Type Package Title Power Analysis for AB Testing Version 0.1.0

Package repec. August 31, 2018

Package liftr. R topics documented: May 14, Type Package

Package profvis. R topics documented:

Package tabulizer. June 7, 2018

Package shinyhelper. June 21, 2018

Package barcoder. October 26, 2018

Package cloudml. June 12, 2018

Package geogrid. August 19, 2018

Package gcite. R topics documented: February 2, Type Package Title Google Citation Parser Version Date Author John Muschelli

Package farver. November 20, 2018

Package vdiffr. April 27, 2018

Package semver. January 6, 2017

Package sessioninfo. June 21, 2017

Package projector. February 27, 2018

Package testit. R topics documented: June 14, 2018

Package fst. June 7, 2018

Package regexselect. R topics documented: September 22, Version Date Title Regular Expressions in 'shiny' Select Lists

Package SimilaR. June 21, 2018

Package crossword.r. January 19, 2018

Package ezknitr. September 16, 2016

Package knitrprogressbar

Package utilsipea. November 13, 2017

Package rsppfp. November 20, 2018

Package goodpractice

Package gtrendsr. October 19, 2017

Package OLScurve. August 29, 2016

Package darksky. September 20, 2017

Package BiocManager. November 13, 2018

Package pkgbuild. October 16, 2018

Package opencage. January 16, 2018

Package readobj. November 2, 2017

Package rdryad. June 18, 2018

Package fst. December 18, 2017

Package texpreview. August 15, 2018

Package librarian. R topics documented:

Package reval. May 26, 2015

Package nonlinearicp

Package oec. R topics documented: May 11, Type Package

Package slickr. March 6, 2018

Package vinereg. August 10, 2018

Package d3plus. September 25, 2017

Package exifr. October 15, 2017

Package lumberjack. R topics documented: July 20, 2018

Package ompr. November 18, 2017

Package gtrendsr. August 4, 2018

Package gridgraphics

Package available. November 17, 2017

Package styler. December 11, Title Non-Invasive Pretty Printing of R Code Version 1.0.0

Package carbonate. R topics documented: October 14, 2018

Package editdata. October 7, 2017

Package keyholder. May 19, 2018

Package humanize. R topics documented: April 4, Version Title Create Values for Human Consumption

Package qualmap. R topics documented: September 12, Type Package

Package snakecase. R topics documented: March 25, Version Date Title Convert Strings into any Case

Package edfreader. R topics documented: May 21, 2017

Package tfruns. February 18, 2018

Package tiler. June 9, 2018

Package githubinstall

Package csvread. August 29, 2016

Package sfc. August 29, 2016

Package QCAtools. January 3, 2017

Package dotcall64. January 11, 2018

Package collapsibletree

Package radix. September 17, 2018

Package docxtools. July 6, 2018

Package kirby21.base

Package ChoR. May 27, 2018

Package nngeo. September 29, 2018

Transcription:

Type Package Title Read and Write from the System Clipboard Version 0.4.1 Package clipr June 23, 2018 Simple utility functions to read from and write to the Windows, OS X, and X11 clipboards. Imports utils SystemRequirements xclip (https://github.com/astrand/xclip) or xsel (http://www.vergenet.net/~conrad/software/xsel/) for accessing the X11 clipboard License GPL-3 LazyData TRUE Suggests rstudioapi (>= 0.5), testthat, covr URL https://github.com/mdlincoln/clipr BugReports https://github.com/mdlincoln/clipr/issues RoxygenNote 6.0.1 NeedsCompilation no Author Matthew Lincoln [aut, cre], Louis Maddox [ctb], Steve Simpson [ctb], Jennifer Bryan [ctb] Maintainer Matthew Lincoln <matthew.d.lincoln@gmail.com> Repository CRAN Date/Publication 2018-06-23 19:47:55 UTC R topics documented: clear_clip.......................................... 2 clipr............................................. 2 clipr_available........................................ 2 read_clip.......................................... 3 read_clip_tbl........................................ 4 write_clip.......................................... 4 1

2 clipr_available Index 6 clear_clip Clear clipboard Clear the system clipboard. clear_clip() Note This is a simple wrapper function for write_clip("") clipr clipr: Read and Write from the System Clipboard Details Simple utility functions to read from and write to the Windows, OS X, and X11 clipboards. The basic functions read_clip and write_clip wrap platform-specific functions for writing values from R to the system clipboard. read_clip_tbl will attempt to process the clipboard content like a table copied from a spreadsheet program. clipr_available is useful when building packages that depend on clipr functionality. clipr_available Is the system clipboard available? Checks to see if the system clipboard is write-able/read-able. 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. clipr_available() dr_clipr()

read_clip 3 clipr_available returns a boolean value. dr_clipr prints an informative message to the console with software and system configuration requirements if clipr is not available (invisibly returns the same string) Examples ## Not run: # When using testthat: library(testthat) skip_if_not(clipr_available()) ## End(Not run) read_clip Read clipboard Read the contents of the system clipboard into a character vector. read_clip() A character vector with the contents of the clipboard. If the system clipboard is empty, returns NULL Note read_clip will not try to guess at how to parse copied text. If you are copying tabular data, it is suggested that you use read_clip_tbl. Examples ## Not run: clip_text <- read_clip() ## End(Not run)

4 write_clip read_clip_tbl Transforms output of read_clip into data frame. Transforms clipped content into a data frame by putting read_clip output by using read.table. read_clip_tbl(x = read_clip(),...) Arguments x Defaults to reading from the clipboard, but can be substituted by a character vector already generated by read_clip.... Options to pass to read.table. The following read.table arguments will be passed by default, but can be overridden by specifying them when calling read_clip_tbl: header TRUE sep "\t" stringsasfactors FALSE na.strings c("na", "") strip.white TRUE A data frame with the contents of the clipboard. If the system clipboard is empty, returns NULL write_clip Write clipboard Write a character vector to the system clipboard write_clip(content, object_type = c("auto", "character", "table"), breaks = NULL, eos = NULL, return_new = TRUE,...)

write_clip 5 Arguments Note content object_type breaks eos return_new An object to be written to the system clipboard. write_clip() tries to be smart about writing objects in a useful manner. If passed a data.frame or matrix, it will format it using write.table for pasting into an external spreadsheet program. It will otherwise coerce the object to a character vector. auto will check the object type, otherwise table or character can be explicitly specified. The separator to be used between each element of the character vector being written. NULL defaults to writing system-specific line breaks between each element of a character vector, or each row of a table. The terminator to be written after each string, followed by an ASCII nul. Defaults to no terminator character, indicated by NULL. If true, returns the rendered string; if false, returns the original object... Custom options to be passed to write.table (if the object is a table-like) Defaults to sane line-break and tab standards based on the operating system. Invisibly returns the original object On X11 systems, write_clip will cause either xclip (preferred) or xsel to be called. Be aware that, by design, these processes will fork into the background until the next paste event, when they will then exit silently. Examples ## Not run: text <- "Write to clipboard" write_clip(text) multiline <- c("write", "to", "clipboard") write_clip(multiline) # Write # to # clipboard write_clip(multiline, breaks = ",") # write,to,clipboard tbl <- data.frame(a=c(1,2,3), b=c(4,5,6)) write_clip(tbl) ## End(Not run)

Index clear_clip, 2 clipr, 2, 2 clipr-package (clipr), 2 clipr_available, 2, 2 dr_clipr (clipr_available), 2 read.table, 4 read_clip, 2, 3, 4 read_clip_tbl, 2, 3, 4 write.table, 5 write_clip, 2, 4 6