tests/isclipboard-tests.R

stopifnot(identical(
    this.path:::.is_clipboard(c("clipboard", "clipboard-128", "X11_primary", "X11_secondary", "X11_clipboard")),
    if (.Platform$OS.type == "windows")
        c(TRUE , TRUE , FALSE, FALSE, FALSE)
    else
        c(TRUE , FALSE, TRUE , TRUE , TRUE )
))

Try the this.path package in your browser

Any scripts or data that you put into this service are public.

this.path documentation built on June 30, 2024, 1:07 a.m.