I would like to clear the warnings() list using a command line.
I have tried with no success
> rm(last.warning, envir = baseenv()) Error in rm(last.
Try assign("last.warning", NULL, envir = baseenv())
assign("last.warning", NULL, envir = baseenv())