|
|
|
Clearing out old datals -as ~/.Data at the UNIX command line. This list all the files with size in kilobytes. Since no data is ever removed unless you intervene, the .Data directory can eventually take up you whole disk quota. Furthermore, old variables you have created may confuse current analyses. Within S+ you remove the entire contents of the .Data directory, by > remove(objects()) although this is somewhat extreme as this will even remove the .First function that you may have created to initialize your session. Generally, I only want to save S+ functions long term in the .Data directory. Here is an S+ function that removes everything except the functions:
houseclean <- function()
{
a <- objects.summary()
remove(row.names(a)[a$sto != "function"])
}
After pasting this in, execute it by
houseclean() Other organizational tips
|