{"success":true,"data":{"ext":"rdata","name":"R","description":"R Data files are workspace and object serialization files used by the R programming language, developed and maintained by the R Core Team. They are used to store datasets, model objects, and session state for later analysis or sharing, and are commonly read by R and compatible tools. The format is generally safe, although loading untrusted files can execute code during deserialization in some cases; it is a long-standing R format rather than a legacy one.","mime":[],"risk_level":"Safe","signatures":[{"hex":"52 44 58 32 0A","offset":0,"sources":[{"name":"Gary Kessler","url":"https://www.garykessler.net/library/file_sigs_GCK_latest.html"}]}],"related":[],"usage":{"python":"def is_rdata(file_path: str) -> bool:\n    \"\"\"Check if file is a valid RDATA by magic bytes.\"\"\"\n    signature = bytes([0x52, 0x44, 0x58, 0x32, 0x0A])\n    with open(file_path, \"rb\") as f:\n        return f.read(5) == signature","node":"function isRDATA(buffer: Buffer): boolean {\n  const signature = Buffer.from([0x52, 0x44, 0x58, 0x32, 0x0A]);\n  return buffer.subarray(0, 5).equals(signature);\n}","go":"func IsRDATA(data []byte) bool {\n    signature := []byte{0x52, 0x44, 0x58, 0x32, 0x0A}\n    if len(data) < 5 {\n        return false\n    }\n    return bytes.Equal(data[:5], signature)\n}"}}}