Skip to content

Move to fs::path rather than file.path #131

@dereckmezquita

Description

@dereckmezquita

Unfortunately base R's functions have some imperfections; use fs instead. I was reading getGEOSuppFiles and found use of file.path across the whole package.

url <- "https://ftp.ncbi.nlm.nih.gov/geo/series/GSE48nnn/GSE48350/suppl/"
i <- "GSE48350_RAW.tar"

file.path(url, i)
"https://ftp.ncbi.nlm.nih.gov/geo/series/GSE48nnn/GSE48350/suppl//GSE48350_RAW.tar"

Note the double forward slash in above result: //.

fs::path(url, i)
https:/ftp.ncbi.nlm.nih.gov/geo/series/GSE48nnn/GSE48350/suppl/GSE48350_RAW.tar

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions