inst/examples/example_sp_lineend.R

library(officer)

sp_lineend()
sp_lineend(type = "triangle")
sp_lineend(type = "arrow", width = "lg", length = "lg")
print(sp_lineend(type = "triangle", width = "lg"))
obj <- sp_lineend(type = "triangle", width = "lg")
update(obj, type = "arrow")

Try the officer package in your browser

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

officer documentation built on Jan. 17, 2026, 1:06 a.m.