trinker / pacman

A package management tools for R
311 stars 37 forks source link

backspace characters in message() cause errors for pdf output #138

Open kwstat opened 2 years ago

kwstat commented 2 years ago

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.

Dasonk commented 2 years ago

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.