Statis...onment(3pm)

πŸ’– Statis...onment(3pm) πŸ’–

okay bestie, welcome to the manual page for Statistics::R::REXP::GlobalEnvironment (the terminal just calls it Statis...onment(3pm) because it ran out of room, tragic honestly). It's part of the User Contributed Perl Documentation, and it's giving niche-but-important. Let's get into it 🫢


✨ NAME ✨

Statistics::R::REXP::GlobalEnvironment β€” the global R environment (.GlobalEnv). That's the whole name. Short, sweet, iconic.


🌸 VERSION 🌸

version 1.0002


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's how you'd actually use it:

use Statistics::R::REXP::GlobalEnvironment

my $env = Statistics::R::REXP::GlobalEnvironment->new([
    x => Statistics::R::REXP::Character->new(['foo', 'bar']),
    b => Statistics::R::REXP::Double->new([1, 2, 3]),
]);
print $env->elements;

that's it, that's the vibe ✨


πŸ’… DESCRIPTION πŸ’…

so an object of this class represents an R environment β€” that's an ENVSXP if you wanna get technical β€” which is more often known as the user's workspace. When you do an assignment operation from the command line, the relevant object gets placed into this environment. that's literally its whole deal, no cap.

bestie, lowkey important: you shouldn't create instances of this class. it exists mainly to handle deserialization of .GlobalEnv by the IO classes. so like, respect the assignment, okay? πŸ™ˆ

πŸ‘‘ METHODS πŸ‘‘

Statistics::R::REXP:GlobalEnvironment inherits from Statistics::R::REXP::Environment, with the added restriction that it doesn't have attributes or enclosure. and the way that trying to create a GlobalEnvironment instance that doesn't follow this restriction will raise an exception. periodt. 🚫

(yes, that's one colon in Statistics::R::REXP:GlobalEnvironment, that's exactly how it's written here, not me, I'm just the messenger πŸ’€)

πŸŽ€ ACCESSORS πŸŽ€

  • name β€” just as in R, the name of the GlobalEnvironment is R_GlobalEnvironment. that's it. that's the name. 🏷️

😭 BUGS AND LIMITATIONS 😭

  • Classes in the REXP hierarchy are intended to be immutable. Please do not try to change their value or attributes. like, hands off bestie, it's not that kind of party πŸ™…β€β™€οΈ
  • 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. they've got you πŸ’–


🌈 AUTHOR 🌈

Davor Cubranic <cubranic@stat.ubc.ca>


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 shipped with perl v5.34.0, dated 2022-02-10 β€” mwah, iconic, no notes πŸ’…βœ¨πŸ’œ