R Programming/Manage your workspace

This page explains how to manage your workspace.

Basic functions

 * lists the objects in your workspace.
 * lists the files located in the folder's workspace
 * removes objects from your workspace;  removes them all.

Each object can be saved to the disk using the  function. They can then be loaded into memory using.
 * saves your workspace.

Informations about the session

 * gives information about your session, i.e., loaded packages, R version, etc.
 * provides information about the R version.

Memory usage
Note: According to R version 3.5.1 on Linux and Mac, memory.size and memory.limit are Windows-specific.

gives the total amount of memory currently used by R.

without any argument gives the limit of memory used by R. This can also be used to increase the limit. The maximum amount is limited by the memory of the computer.

returns the size of an R object. You can print the results and choose the unit (byte,kilobytes,megabytes,etc).

returns more details.


 * initiates the garbage collector which causes R to free memory from objects no longer used.