rm(list=ls()) doesn't completely clear the workspace

前端 未结 7 1359
一向
一向 2020-12-08 04:36

This is a very minor issue, but I would like to understand exactly what is going on here.

Say I do the following:

library(RMySQL)
con <- dbConnect         


        
7条回答
  •  不知归路
    2020-12-08 05:09

    You can use:

    rm(list=ls())
    

    or:

    rm(list=(ls()))
    

    but save your workspace before you close R.

提交回复
热议问题