Suggestion: `list.files()` with and for here

Open
#89 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
r
Domain
tooling

Research direction

Review the existing here() behavior and compare it with the issue's proposed list.files() use case. No source files or tests are named, so first identify the package entry point and relevant tests, then clarify the expected relative-path output and how completion would be verified.

Written by the indexing model from the issue text.

Description

Hi,

with list.files() we can retrieve a list of all file names including their extensions from a specified folder. Adding all.files = TRUE extends this to the complete file path.

Do you see added value in a similar function but then in the here() fashion of returning the file path relative to the top-level directory?

Greetings,
Frederick

Dominant language
R
Stars
436
Forks
45
Avg merge
4m
Merged PRs (30d)
4

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from r-lib/here

All issues in r-lib/here

Similar issues

More R issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.