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::RData - Supply object methods for RData files

Author

       Davor Cubranic <cubranic@stat.ubc.ca>

Bugs And Limitations

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

Description

       "Statistics::R::IO::RData" provides an object-oriented interface to parsing RData files. RData files
       store a serialization of a collection of named objects, typically a workspace. These files are created in
       R using the "save" function and are typically named with the ".RData" file extension. (Contents of the R
       workspace can also be saved automatically on exit to the file named .RData, which is by default
       automatically read in on startup.)

Methods

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

       read
           Reads  a  contents of the filehandle and returns a hash whose keys are the names of objects stored in
           the file with corresponding values as Statistics::R::REXP instances.

Name

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

Support

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

Synopsis

           use Statistics::R::IO::RData;

           my $rdata = Statistics::R::IO::RData->new('.RData');
           my %r_workspace = $rdata->read;
           while (my ($var_name, $value) = each %r_workspace) {
               print $var_name, $value;
           }
           $rdata->close;

Version

       version 1.0002

See Also