It seems that the package can't tell that I am on Wayland
# This is shell.
$ whereis wl-paste
wl-paste: /usr/bin/wl-paste /usr/share/man/man1/wl-paste.1.gz
$ whereis wl-copy
wl-copy: /usr/bin/wl-copy /usr/share/man/man1/wl-copy.1.gz
$ wl-paste --primary
hi
$ wl-copy --primary "Lorem ipsum dolor sit amet, consectetur adipiscing elit."
$ wl-paste --primary
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
> version
_
platform x86_64-pc-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 4
minor 4.1
year 2024
month 06
day 14
svn rev 86737
language R
version.string R version 4.4.1 (2024-06-14)
nickname Race for Your Life
> library(clipr)
Welcome to clipr. See ?write_clip for advisories on writing to the clipboard in R.
> write_clip("hi!")
<simpleWarning in system2(util_test[1], util_test[-1], stdout = TRUE, stderr = TRUE): running command ''xclip' -o -selection clipboard 2>&1' had status 1>
Error: Clipboard on X11 requires that the DISPLAY envvar be configured.
> clipr_available()
<simpleWarning in system2(util_test[1], util_test[-1], stdout = TRUE, stderr = TRUE): running command ''xclip' -o -selection clipboard 2>&1' had status 1>
<simpleWarning in system2(util_test[1], util_test[-1], stdout = TRUE, stderr = TRUE): running command ''xclip' -o -selection clipboard 2>&1' had status 1>
[1] FALSE
It seems that the package can't tell that I am on Wayland