---
name: "Statistics::R::Win32"
section: "3pm"
platform: "linux"
package: "libstatistics-r-perl"
version: "0.34-2"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/Statistics::R::Win32"
---

# Statistics::R::Win32(3pm)

Helper functions for Statistics::R on MS Windows platforms

## NAME

Statistics::R::Win32 - Helper functions for Statistics::R on MS Windows platforms

## DESCRIPTION

**Do not use this module directly. Use Statistics::R instead.**

Helper functions to deal with environment variables and escape file paths on MS Windows platforms.

## SYNOPSIS

```
   if ( $^O =~ m/^(?:.*?win32|dos)$/i ) {
      require Statistics::R::Win32;
   }
```

## METHODS

- win32\_path\_adjust( )

  Looks for paths where R could be installed, e.g. C:\\Program Files (x86)\\R-2.1\\bin and add it to the PATH environment variable.

- win32\_space\_quote( )

  Takes a path and return a path that is surrounded by double-quotes if the path contains whitespaces. Example:

  ```
     C:\Program Files\R\bin\x64
  ```

  becomes

  ```
     "C:\Program Files\R\bin\x64"
  ```

- win32\_space\_escape( )

  Takes a path and return a path where spaces have been escaped by a backslash. contains whitespaces. Example:

  ```
     C:\Program Files\R\bin\x64
  ```

  becomes

  ```
     C:\Program\ Files\R\bin\x64
  ```

- win32\_double\_bs

  Takes a path and return a path where each backslash was replaced by two backslashes.\
    Example:

  ```
     C:\Program Files\R\bin\x64
  ```

  becomes

  ```
     C:\\Program Files\\R\\bin\\x64
  ```

## SEE ALSO

- •

  Statistics::R

## AUTHORS

Florent Angly \<florent.angly@gmail.com\> (2011 rewrite)

Graciliano M. P. \<gm@virtuasites.com.br\> (original code)

## MAINTAINERS

Florent Angly \<florent.angly@gmail.com\>

Brian Cassidy \<bricas@cpan.org\>

## COPYRIGHT & LICENSE

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

## 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
```
