csgillespie / rprofile

My .Rprofile set-up
https://csgillespie.github.io/rprofile/
50 stars 11 forks source link

`The following objects are masked from package:base: !, print.function` from `prettycode::prettycode()` in `rprofile::set_terminal`. #10

Closed englianhu closed 3 years ago

englianhu commented 3 years ago

R

terminal

there has a message :

The following objects are masked from package:base:
    !, print.function

try to check and know that message from prettycode::prettycode().

set_terminal = function(rdoc = TRUE, colorout = TRUE, prettycode = TRUE, cmd_prompt = rprofile_prompt) {
   if (isTRUE(prettycode)) prettycode::prettycode()
   if (isTRUE(rdoc)) {
       base::library("utils") # Needed for rdoc`?` to take precedence
       rdoc::use_rdoc()
   }

Souce : https://github.com/csgillespie/rprofile/blob/master/R/set-terminal.R

prettycode package via https://github.com/r-lib/prettycode

and then configure .Rprofile but doesn't help.

2021-06-11_23-17

...
...
library(prettycode, exclude = c('!', 'print'))
pkgs <- c('MASS', 'devtools', 'lubridate', 'tidyverse', 'rprofile', 'prompt', 
          'colorout', 'Rdym', 'startup', 'conflicted', 'prettycode')
suppressAll(lib(pkgs))
rm(pkgs)

conflicted::conflict_prefer('print', 'base', quiet=TRUE)
...
...

Reference: