I'm getting the error Error in hist(hist_vals, plot = FALSE) : could not find function "hist" , also reported here, here and here but for different situations.
In my case the error happens when I try to view some data frame with double columns.
For example
data <- data.frame(x = as.double(c(1,2,3)))
View(data)
I'm using a docker image FROM rocker/rstudio:3.6.3-ubuntu18.04
After some tests, I removed a function that I have added to my /usr/local/lib/R/etc/Rprofile.site and didn't receive the error anymore. Wherever I would like to understand what I have to do to use my function on Rprofile without receive errors.
I figured out the problem. In my function on Rprofile.site there is a function to read from console with (readline or scan) and its line is causing the error with the View() function. Someone knows other manners to read at session starts or restarts?