Skip to content

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

@asfimport

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")
 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

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