.RDATA

Файл RDATA

R Workspace / Saved Objects File
Задать вопрос
БЫСТРЫЙ ОТВЕТ

An RDATA file is a binary snapshot of one or more R objects - a saved R workspace created by R's save() function. Open it in R or RStudio with load("file.RData"), which restores all objects into your session. It is not readable in a text editor. There is no standalone converter; to get data out, load it in R and export to CSV or Excel from there.

Разработчик: The R Project for Statistical Computing (R Core Team) Категория: Файлы данных Открыть стандартное MIME: application/octet-stream
ОТКРЫВАЕТСЯ НА Windows macOS Linux Web
Связанные: .PKPASS · .DAT · .JSON · .RIS

На этой странице

Проиндексировано расширений: 19k+
Последняя проверка: Aug 26, 2026

Не знаете, что это за файл?

Перетащите любой файл в наш идентификатор - мы прочитаем первые байты, чтобы определить формат.

Идентифицировать файл

Что такое формат файла RDATA?

.rdata (also written .RData) is the native workspace format used by the R statistical computing environment to save and restore multiple in-memory objects at once. Calling save() or save.image() in R serializes any number of named objects - vectors, data frames, lists, functions, and environments - into a single binary file, which load() then restores directly into the calling environment under their original names.

The file is built on R's internal serialization protocol. Uncompressed files begin with the ASCII header RDX3 (or the older RDX2) followed by an XDR-encoded binary payload. In practice R compresses the payload with gzip by default, so most .rdata files start with the gzip magic bytes 1F 8B rather than the raw serialization header. Bzip2 and xz compression are also supported.

Two serialization format versions are in common use:

  • Version 2 - default before R 3.5.0; broadly compatible with older R installations.
  • Version 3 - default since R 3.5.0; adds native character-encoding metadata and cannot be read by earlier R releases.

The closely related .rds format differs in one key respect: it stores a single R object rather than a named collection, and is loaded with readRDS() so the caller can assign it any name. For sharing data portably outside R, text-based formats such as CSV or JSON are often preferred.

Безопасность и защита

РИСК: MEDIUM

.RData files are data, but loading one is not entirely passive: an .RData can contain R objects such as functions, formulas or promises, and restoring a malicious workspace can in some cases trigger code execution (and load() silently overwrites objects of the same name in your environment). Only load .RData files from sources you trust, the same way you'd treat any executable-bearing file. Files are not encrypted, so don't assume privacy. Otherwise there's no malware risk in ordinary datasets.

Детали формата

в двух словах
ПОЛНОЕ НАЗВАНИЕR Workspace / Saved Objects Fileтакже известен как RData file, R workspace
РАЗРАБОТЧИКThe R Project for Statistical Computing (R Core Team)с 1990s (with R; serialization format predates R 1.0, 2000)
КАТЕГОРИЯФайлы данных
MIME-ТИПapplication/octet-stream
ТИПBinary serialized R objects (R's native save format)
СТАНДАРТОткрытый · без роялти
СВЯЗАННЫЕ.pkpass.dat.json.ris
MAGIC BYTES · СИГНАТУРА ФАЙЛА
СМЕЩЕНИЕ
0001020304
HEX
524458330A
ASCII
RDX3·
A typical .RData saved by save() begins with the ASCII line "RDX3\n" (older files "RDX2\n"), then an XDR-encoded serialized payload. If saved gzip-compressed (the default), the file instead starts with the gzip magic 1F 8B; bzip2 starts "BZh", xz starts "FD 37 7A 58 5A". Uncompressed payloads carry the serialization marker "X\n" (58 0A). So there is no single fixed offset-0 signature across all .RData files.

Программы, открывающие файлы RDATA

Windows2 apps
R (base, with RGui) Открытый код In R run load('path/to/file.RData') to restore the objects; ls() to see what loaded.
RStudio (Posit) Freemium Open RStudio and double-click the .RData in the Files pane, or run load('file.RData'); inspect objects in the Environment pane.
macOS2 apps
R (base) Открытый код Run load('file.RData') in R.app or the terminal R session.
RStudio (Posit) Freemium Open RStudio and double-click the .RData in the Files pane, or run load('file.RData'); inspect objects in the Environment pane.
Linux2 apps
R (base) Открытый код Run load('file.RData') in R.app or the terminal R session.
RStudio (Posit) Freemium Open RStudio and double-click the .RData in the Files pane, or run load('file.RData'); inspect objects in the Environment pane.
Web1 app
Posit Cloud Freemium Upload the .RData to a Posit Cloud project and load() it in the browser-based RStudio - no local install.

Технические подробности

глубокая спецификация
Format typeBinary serialized R objects; an ASCII serialization mode also exists
Byte orderBig-endian (XDR network byte order)
Default compressiongzip; bzip2 and xz are optional alternatives; uncompressed mode is available
Magic bytes (uncompressed v3)52 44 58 33 0A (ASCII "RDX3\n"); v2 files use 52 44 58 32 0A ("RDX2\n")
Magic bytes (compressed)1F 8B when gzip-compressed (the default); 42 5A 68 for bzip2; FD 37 7A 58 5A for xz
Object multiplicityStores multiple named R objects per file (vectors, data frames, lists, functions, environments)
Load command`load()` - restores all saved objects into the calling environment under their original names
Save commands`save()` for selected objects; `save.image()` to capture the entire current workspace
Serialization versionsv2 (pre-R 3.5.0) and v3 (R ≥ 3.5.0); v3 embeds native character-encoding metadata; v3 files require R 3.5.0 or later
MIME typeapplication/octet-stream (generic); unofficial: application/x-r-data
EncryptionNone built-in; sensitive workspaces must be protected at the OS or container level
Integrity checkingNo intrinsic checksum; the compression wrapper may detect bitrot, but there is no per-object hash
Platform supportCross-platform: Windows, macOS, Linux - any system running R
Typical file sizeA few KB to several GB, depending on the size and number of objects saved
Sibling single-object format`.rds` stores exactly one R object; loaded with `readRDS()` and freely renamed on assignment
Package lazy-load database`.rdx` (index) and `.rdb` (data) files together form the lazy-load database used inside R packages, sharing the same serialization layer
Выпущен1990s (with R; serialization format predates R 1.0, 2000)
Последняя версияR serialization format version 3 (default since R 3.5.0, 2018)
Открыть стандартноеДа · без роялти
Спецификацияcran.r-project.org

Конвертации RDATA

Вопросы и ответы сообщества

спрошено пользователями
Задать быстрый вопрос
Получите помощь от людей, работающих с файлами RDATA. Будьте конкретны - укажите вашу систему и версию ПО.
Аккаунт не нужен · ответы обычно в течение дня

Вопросов пока нет - станьте первым, кто спросит о файлах RDATA.

Часто задаваемые вопросы

How do I open an RData file?
Open it in R or RStudio with load('path/to/file.RData'). That restores all saved objects into your session under their original names - run ls() to see them. RData is binary, so a text editor won't show readable content.
What's the difference between .RData and .rds?
.RData (via save/load) stores multiple named objects and drops them back under those names. .rds (via saveRDS/readRDS) stores a single object that you assign to any name on load. For one object, .rds is usually cleaner.
How do I convert RData to CSV?
There's no one-click converter and an .RData can hold several objects. In R: load('file.RData'), then write.csv(yourDataFrame, 'out.csv') for each data frame you want to export.
Can I open an RData file without R?
Practically, no - it's R's native binary format. Use R/RStudio (or Posit Cloud in a browser). Python's pyreadr can read many .RData files, but R is the reliable route, then export to CSV/Excel for other tools.
Why won't my RData file load in R?
Common cause: it was saved in serialization format version 3 (default since R 3.5.0, 2018) and you're running an older R. Update R. Also confirm the file isn't truncated/corrupted from a bad transfer.
Is it safe to open an RData file from someone else?
Mostly, but not unconditionally: .RData can contain functions/code and load() can overwrite your objects, so only open files from sources you trust - treat unknown .RData like any file that could run code.

Ссылки

1R Internals - Serialization Formatscran.r-project.org
2R Documentation - save() / load()stat.ethz.ch

Узнать больше

по всей базе данных

Популярные расширения на этой неделе

1.AQQAQQ Instant Messenger File
2.CRDOWNLOADChrome Partial Download File
3.EXEWindows Executable (Portable Executable)
4.PARTPartial Download File
5.BINCD/DVD Disc Image (BIN/CUE)
6.DATProgram Data File (generic)
7.RPMSGRestricted Permission Message
8.TXTPlain Text File
9.MDMarkdown Document
10.NOMEDIAAndroid No-Media Marker File

Похожие расширения

.PKPASSApple Wallet Pass (formerly Passbook)
.DATProgram Data File (generic)
.JSONJavaScript Object Notation file
.RISResearch Information Systems citation file
.OFXOpen Financial Exchange
.CSVComma-Separated Values

Бесплатные инструменты для файлов

Идентификатор файлов и конвертер изображений в браузере - все работает на вашем устройстве.

Открыть инструменты

Обзор расширений файлов A-Z