R Workspace
Data & ScienceRDATA saves collections of named R objects. load can overwrite same-named workspace variables; preserve current work and use a separate restore environment. It does not necessarily include all packages or external resources.
- What it is used for
- Saving a collection of named R objects
- What the file contains
- Binary data
All sections, questions and sources
Content reviewed: · Editor:Kai
Opening steps
Choose your environment or purpose to see its steps.
Menu labels and support vary by app, OS and version. Preserve the original before making changes.
Troubleshooting by symptom
- Variables changed: separate restore destination and preserve work.
- Package warnings: check producer versions and class definitions.
- Confused with RDS: identify the save method and matching reader.
- Existing objects replaced: inspect load’s destination environment.
- Expected table absent: inspect restored names and classes.
- Model does not work: inspect dependencies and producer environment.
RDATA → selected RDS / CSV
- Restore separately and identify target names/types.
- Use saveRDS for one object or table export for data; compare values/attributes.
- Record restored names and validate the selected-object output after reopening.
Reproduction may still need code/packages; CSV does not retain functions, environments or classes.
Specify the destination environment
load restores named objects and can replace existing values; use a dedicated inspection environment.
Source for these steps:R Core Team · Reload Saved Datasets / R Core Team · Serialization Interface for Single Objects
Do not treat an entire workspace as a table
A workspace can contain multiple tables, models or other objects; identify required targets/dependencies.
Validate dates, factors, missing values and types in table output and retain RData.
Source for these steps:R Core Team · Reload Saved Datasets / R Core Team · Serialization Interface for Single Objects
Related-format differences
| Format | Main role | What to check |
|---|---|---|
| RData | Named objects | Dedicated load environment |
| RDS | Single object | Choose assignment name |
| CSV | Text table | Type/attribute differences |
Handling and security
Preserve originals/work; do not run unknown functions. A separate R environment avoids name collisions, not malicious execution.
Questions and answers
Does it always contain everything?
Only the objects selected when saving.
Can load overwrite variables?
Yes, in its target environment.
Can renaming interchange RDS/RDATA?
Their read/write methods differ.
Does the filename become the variable name?
Stored object names are restored; inspect the list returned by load.
Can several restored tables become one CSV?
Define required joins from table relationships; serialization is not automatic tabular merging.
Format facts: name, steward and MIME type
- Formal name
- R saved object collection / workspace image
- Steward / specification
- R Core Team
- MIME type
- Depends on the producer or server; an extension alone does not establish a MIME type.
Primary and official sources
- Project documentationReload Saved Datasets
Documents restore environments and name collisions.
R Core Team · Link checked: - Project documentationSerialization Interface for Single Objects
Reference for single-object serialization and compatibility.
R Core Team · Link checked: