Small function to print a plot if the R session is interactive or in a CI build

print_if_interactive(p)

Arguments

p

plot to be displayed