Scroll to navigation

Statistics::R::IO::RDS(3pm) User Contributed Perl Documentation Statistics::R::IO::RDS(3pm)

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;

DESCRIPTION

"Statistics::R::IO::RDS" provides an object-oriented interface to parsing RDS files. RDS files store a serialization of a single R object (and, if the object contains references to other objects, such as environments, all the referenced objects as well). These files are created in R using the "readRDS" function and are typically named with the ".rds" file extension.

METHODS

"Statistics::R::IO::RDS" inherits from Statistics::R::IO::Base and provides an implementation for the "read" method that parses RDS files.

Reads the contents of the filehandle and returns a Statistics::R::REXP.

BUGS AND LIMITATIONS

Instances of this class are intended to be immutable. Please do not try to change their value or attributes.

There are no known bugs in this module. Please see Statistics::R::IO for bug reporting.

SUPPORT

See Statistics::R::IO for support and contact information.

AUTHOR

Davor Cubranic <cubranic@stat.ubc.ca>

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
2022-02-10 perl v5.34.0