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 idea - here::right_here() #96

Open
MichalLauer opened this issue Jul 25, 2023 · 0 comments
Open

Feature idea - here::right_here() #96

MichalLauer opened this issue Jul 25, 2023 · 0 comments

Comments

@MichalLauer
Copy link

Hello!

First of all, thank you for this package. I have been using it for some time, and it is a great tool!:)

I sometimes create multiple presentations within a single RStudio project with their own assets. The file structure looks like this:

ProjectFolder/
├── project.Rproj
└── presentations/
    ├── presentation01/
    │   ├── presentation.qmd
    │   └── assets/
    └── presentation02/
        ├── presentation.qmd
        └── assets/

If I want to access files from the assets folder, I need to do the following (in each .qmd file)

here::i_am("presentations/presentation01/presentation.qmd")
# Accessing assets
here::here("presentations/presentation01/assets/...")

You might see where I am going with this - I always need to write the initial path to the file. I am proposing a new function called here::right_here() (or any other - any suggestions are welcome!) that would not require the path. The new workflow would then look like this:

here::i_am("presentations/presentation01/presentation.qmd")
# Proposed function
here::right_here("assets/...")

If you feel this function is useful and fits this package, I will gladly help with the implementation:)
What do you think?

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

1 participant