pacman
pacman copied to clipboard
backspace characters in message() cause errors for pdf output
When I have an Rmd document with a chunk like:
p_unload(dplyr)
The p_unload
function inserts a backspace character "\b" into the message. When the Rmd is converted to pdf, this error is shown:
Package inputenc Error: Unicode character (U+0008)
Suggested fix: Remove "\b" everywhere in message()
s.
Interesting. I didn't think we had backspaces hardcoded but it appears we do https://github.com/trinker/pacman/blob/ace0936406ca0186a67ee0f5cd52698f663780db/R/p_unload.R#L87
I'll try to look at this over the weekend and see what - if anything - removing the backspaces messes up.