Statis...O::RDS(3pm)
π Statistics::R::IO::RDS π
okay bestie, so this is a page from the User Contributed Perl Documentation section of the manual β it's Statistics::R::IO::RDS, and it's genuinely one of the cutest little modules out there. let's get into it π«Ά
β¨ NAME β¨
Statistics::R::IO::RDS β Supply object methods for RDS files
πΈ VERSION πΈ
version 1.0002
π SYNOPSIS π
use Statistics::R::IO::RDS;
my $rds = Statistics::R::IO::RDS->new('file.rds');
my $var = $rds->read;
print $var->to_pl;
$rds->close;
like, that's it. that's the whole vibe. four lines and you're living your best life π
π¦ DESCRIPTION π¦
so Statistics::R::IO::RDS gives you an object-oriented interface to parsing RDS files. no cap.
and what even is an RDS file, you ask? okay so, an RDS file stores a serialization of a single R object β and if that object has references to other objects (think: environments π) then all the referenced objects come along too. it's a whole friend group, they travel together, periodt.
these files get created in R using the readRDS function, and they're typically named with the .rds file extension. iconic behavior honestly.
π METHODS π
Statistics::R::IO::RDS inherits from Statistics::R::IO::Base and provides an implementation for the read method that parses RDS files. family business π§
π read
Reads the contents of the filehandle and returns a Statistics::R::REXP.
that's the whole job. it reads, it returns, it slays.
π BUGS AND LIMITATIONS π
instances of this class are intended to be immutable. so please, for the love of everything, do not try to change their value or attributes. it's giving "don't touch the art in the museum" energy. π
there are no known bugs in this module. and if you do find one? please see Statistics::R::IO for bug reporting. we keep it organized around here β¨
π SUPPORT π
See Statistics::R::IO for support and contact information. that's where the help lives π«Ά
π AUTHOR π
Davor Cubranic <cubranic@stat.ubc.ca> β we stan a legend fr fr
β COPYRIGHT AND LICENSE β
This software is Copyright (c) 2017 by University of British Columbia.
This is free software, licensed under:
The GNU General Public License, Version 3, June 2007
and that's the whole page, bestie! π this one's from perl v5.34.0, dated 2022-02-10 β so go forth, parse those RDS files, and remember: immutable means immutable. mwah π
π¦ where this page comes from
- debian bookworm: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- debian trixie: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu jammy: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu noble: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu resolute: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- ubuntu stonking: libstatistics-r-io-perl 1.0002-2 Β· GPL-3.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms