[
https://issues.apache.org/jira/browse/ARROW-6323?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16913517#comment-16913517
]
Antoine Pitrou commented on ARROW-6323:
---------------------------------------
Well, the C++ filesystem API isn't _used_ currently, so if you want a fix now,
you need to do it on the R side ;-)
Though of course we could fix the issue in the C++ file APIs.
> [R] Expand file paths when passing to readers
> ---------------------------------------------
>
> Key: ARROW-6323
> URL: https://issues.apache.org/jira/browse/ARROW-6323
> Project: Apache Arrow
> Issue Type: Bug
> Components: R
> Reporter: Neal Richardson
> Assignee: Neal Richardson
> Priority: Major
> Labels: pull-request-available
> Fix For: 0.15.0
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> All file paths in R are wrapped in {{fs::path_abs()}}, which handles relative
> paths, but it doesn't expand {{~}}, so this fails:
> {code:java}
> > df <- read_parquet("~/Downloads/demofile.parquet")
> Error in io___MemoryMappedFile__Open(fs::path_abs(path), mode) :
> IOError: Failed to open local file '~/Downloads/demofile.parquet', error:
> No such file or directory
> {code}
> This is fixed by using {{fs::path_real()}} instead.
> Should this be properly handled in C++ though? cc [~pitrou]
--
This message was sent by Atlassian Jira
(v8.3.2#803003)