r-lib / prettycode

Syntax highlight R code in the terminal
https://r-lib.github.io/prettycode/
Other
101 stars 9 forks source link

Not working in R 3.5 #6

Closed t-kalinowski closed 6 years ago

t-kalinowski commented 6 years ago

Hello,

After updating to R 3.5 this no longer works for me. Did something change about how S3 functions are found in R 3.5? Doing prettycode:::print.function() still works, but it doesn't seem to be called anymore by default.

gaborcsardi commented 6 years ago

Yeah, this is because of the new S3 method search strategy of R. I am investigating workarounds.....

gaborcsardi commented 6 years ago

Fixed now in the GH version, going to CRAN ASAP. Note that you need to call prettycode::prettycode() now, to turn it on, best to put the call in the .Rprofile.

gaborcsardi commented 6 years ago

Please re-open if you have problems.