Skip to contents

Copy to and from clipboard

Usage

xclip(x)

fclip()

Arguments

x

Character.

Examples

fp = 'C:\\Users\\rd\\bin\\export_docs_pdf.R'
fp |> xclip()  # copy to clipboard
#> Error in error_interactive(): To run write_clip() in non-interactive mode, either call write_clip() with allow_non_interactive = TRUE, or set the environment variable CLIPR_ALLOW=TRUE
fclip() |> cat()
#> Error in error_interactive(): To run write_clip() in non-interactive mode, either call write_clip() with allow_non_interactive = TRUE, or set the environment variable CLIPR_ALLOW=TRUE