extras/UTFArrow.md

UTFArrow

Win-Vector LLC 12/16/2017

How to make a UTF arrow operator using wrapr and addinexamplesWV (original note here).

library("addinexamplesWV")
op <- paste0('%', intToUtf8(8226), intToUtf8(10132), '%')
assign(op, wrapr::`%.>%`)
options("addinexamplesWV.usrFn1" =
          function() {
            rstudioapi::insertText(paste0(' ', op, ' '))
          })


7 %•➔% sqrt(.)
## [1] 2.645751

Note: UTF8 is not recommended in R source code.



WinVector/wrapr documentation built on Aug. 29, 2023, 4:51 a.m.