Skip to content

Add function from_here() #115

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Add function from_here() #115

wants to merge 3 commits into from

Conversation

chapb
Copy link

@chapb chapb commented Mar 28, 2025

My try at a function to return a shortened path relative to project root. Useful for reporting file locations in RMarkdown/Quarto documents. May address #104.

If we would like to go ahead with this addition, we should discuss if the function should return a string, prepended by a / (the non-fs implementation).

I'm also open to a different function name.

@chapb
Copy link
Author

chapb commented Mar 28, 2025

fs is already in suggests. Move to imports?

Move fs from suggests to imports to support fs implementation of from_here()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant