Skip to content

[R] Expand file paths when passing to readers #22702

Description

@asfimport

All file paths in R are wrapped in fs::path_abs(), which handles relative paths, but it doesn't expand ~, so this fails:

> df <- read_parquet("~/Downloads/demofile.parquet")
Errorinio___MemoryMappedFile__Open(fs::path_abs(path), mode) :
IOError: Failedtoopenlocalfile'~/Downloads/demofile.parquet', error: Nosuchfileordirectory

This is fixed by using fs::path_real() instead.

Should this be properly handled in C++ though? cc @pitrou

Reporter: Neal Richardson / @nealrichardson
Assignee: Neal Richardson / @nealrichardson

PRs and other links:

Note: This issue was originally created as ARROW-6323. Please see the migration documentation for further details.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions