Statis...:Win32(3pm)

πŸ“¦
version 0.34 Β· 4 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– 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 🫢


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