Statis...:Win32(3pm)
π Statistics::R::Win32 β the manual page, but make it cute π
okay bestie, so this is Statistics::R::Win32, a page from the User Contributed Perl Documentation. She's a helper module. She's small. She's iconic. Let's get into it π¦
β¨ NAME β¨
Statistics::R::Win32 β helper functions for Statistics::R on MS Windows platforms πͺ
πΈ DESCRIPTION πΈ
π Do not use this module directly. Use Statistics::R instead. periodt.
She's the backstage crew, not the main character. Her whole job is helping out with environment variables and escaping file paths on MS Windows platforms. That's it. That's the vibe. π
π SYNOPSIS π
so this is literally how you'd load her, and no, you don't do it by hand β the OS check does it for you:
if ( $^O =~ m/^(?:.*?win32|dos)$/i ) {
require Statistics::R::Win32;
}
like, if your OS string matches ^(?:.*?win32|dos)$ (case-insensitive, hence the /i), she shows up. π
π METHODS π
π win32_path_adjust( )
She goes looking for places where R might be installed β think C:\Program Files (x86)\R-2.1\bin type energy β and then she adds that path to the PATH environment variable. lowkey doing the most so you don't have to. π«Ά
π win32_space_quote( )
Takes a path and hands you back a path surrounded by double-quotes β but only if that path contains whitespaces. Example time, bestie:
this:
C:\Program Files\R\bin\x64
becomes this:
"C:\Program Files\R\bin\x64"
ate. β¨
π win32_space_escape( )
Takes a path and hands you back a path where the spaces have been escaped with a backslash. (The original notes it "contains whitespaces" β same deal as above, spaces are the whole point.) Example:
this:
C:\Program Files\R\bin\x64
becomes this:
C:\Program\ Files\R\bin\x64
not the backslash doing the heavy lifting ππ
π win32_double_bs
Takes a path and hands you back a path where each backslash got replaced by two backslashes. Double it and give it to the next person. Example:
this:
C:\Program Files\R\bin\x64
becomes this:
C:\\Program Files\\R\\bin\\x64
fr fr, that's a lot of backslashes. π₯
π¦ SEE ALSO π¦
Statistics::Rβ the main character, go read her instead π
π AUTHORS π
- Florent Angly
<florent.angly@gmail.com>β did the 2011 rewrite βοΈ - Graciliano M. P.
<gm@virtuasites.com.br>β wrote the original code π
π MAINTAINERS π
- Florent Angly
<florent.angly@gmail.com> - Brian Cassidy
<bricas@cpan.org>
the way they're keeping her alive, obsessed π«Ά
π COPYRIGHT & LICENSE π
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. slay, open source behavior π
π BUGS π
All complex software has bugs lurking in it, and this program is no exception. π
If you find a bug, please report it on the CPAN Tracker of Statistics::R: <http://rt.cpan.org/Dist/Display.html?Name=Statistics-R>
Bug reports, suggestions and patches are welcome. The Statistics::R code is developed on Github (<http://github.com/bricas/statistics-r>) and is under Git revision control. To get the latest revision, run:
git clone git@github.com:bricas/statistics-r.git
go get that latest revision bestie, it's giving contributor energy π
and that's the whole page!! written for perl v5.38.2, dated 2024-05-16, and yes this was Statis...:Win32(3pm) the whole time π mwah, bye!! πβ¨
π¦ where this page comes from
- debian trixie: libstatistics-r-perl 0.34-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libstatistics-r-perl 0.34-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libstatistics-r-perl 0.34-2 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms