[R] `wslify_path` breaks on windows in `create_package_with_all_dependencies`
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### Describe the bug, including details regarding any error messages, version, and platform.
Hello,
First, thanks for this great function and ecosystem. It saved me a lot of headaches and work! :)
I am trying to get all the dependencies for the R package and I am using the function `create_package_with_all_dependencies`. However, it throws an error on my system:
``` r
arrow::create_package_with_all_dependencies()
#> Downloading Arrow source file
#> Warning in system2("bash", c(download_dependencies_sh, download_dir), stdout =
#> download_script, : Exit code was 127
#> Error in arrow::create_package_with_all_dependencies(): Failed to parse versions.txt; view C:\Users\lauerm\AppData\Local\Temp\RtmpYdNYVl\filec85a851e9c.R for more information
```
Created on 2024-10-17 with [reprex v2.1.1](https://reprex.tidyverse.org)
Now after some investigation, it is caused by the `wslify_path` here:
https://github.com/apache/arrow/blob/1a323fc91bbbce2f231262a1619d5f15e9cb7762/r/R/install-arrow.R#L218-L220
If I copy the whole function body, and remove these three lines, all works as expected. I reckon it's an issue on my end and simply 'deleting' these three lines won't fix it.
I would be happy to create a PR that fixes this if you have any idea what might cause this. I have WLS installed, but I don't have any distros.
Thanks!
### Component(s)
R
Contributor guide
Assessment
This issue has not been assessed yet.