Error in hist(hist_vals, plot = FALSE) : could not find function "hist"

Hi,

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

could someone help me?

thanks

HI,

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.

Thanks

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?

Thanks

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.