Skip to content
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

feature request: localized here() #107

Open
torbjorn opened this issue Aug 15, 2024 · 1 comment
Open

feature request: localized here() #107

torbjorn opened this issue Aug 15, 2024 · 1 comment

Comments

@torbjorn
Copy link

In our work we find ourselves (due to git submodules) needing to temporarily changing here() root when sourcing files.

Would a local_here( "/now/here", r_expression ) make sense? (and have r_expression being evaluated with here's root temporarily changed to said dir)

Wasn't sure to take this here (hah!) or to withr, but it sounds specific enough that it ought to go here I believe.

@krlmlr
Copy link
Member

krlmlr commented Aug 16, 2024

Thanks. The here package currently doesn't allow changing its perception of what it thinks the root of the project should be.

Am I reading this correctly that you have a main Git repo that contains several other projects that need to run both self-contained and as a submodule in the bigger repo? What would your use case of a local_here() or with_here() function look like? Would the i_am() function be of any use?

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

No branches or pull requests

2 participants