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


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 πŸ’‹