Learn R Programming

clipr (version 0.3.0)

clipr_available: Is the system clipboard available?

Description

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.

Usage

clipr_available()

Arguments

Value

boolean

Examples

Run this code
## Not run: 
# # When using testthat:
# library(testthat)
# skip_if_not(clipr_available())
# ## End(Not run)

Run the code above in your browser using DataLab