logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Statistics::R::IO::RDS - Supply object methods for RDS files

Author

       Davor Cubranic <cubranic@stat.ubc.ca>

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.

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.

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

Name

       Statistics::R::IO::RDS - Supply object methods for RDS files

Support

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

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;

Version

       version 1.0002

See Also