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

Add option for proj_activate() in same session #1954

Closed
wants to merge 2 commits into from

Conversation

olivroy
Copy link
Contributor

@olivroy olivroy commented Feb 28, 2024

I use a wrapper that allows me to switch projects only by typing the name (as opposed to giving the full path)

https://olivroy.github.io/reuseme/reference/proj_switch.html

Looks at given options in Rprofile to activate project.

# in r profile
options(reuseme.reposdir = c("~/Documents/github", "~/Documents/packages", "~/Desktop/rrr"))

let's say you want to use project in "~/Documents/github/usethis"

proj_switch("usethis")

works and gives helpful error if there is a typo. (uses rlang::arg_match().

proj_switch("usethiss")
#> Did you mean "usethis"?

So the goal of this PR would be to add the new_session to usethis::proj_activate() to eventually add it to reuseme::proj_switch().

Cheers.

@olivroy
Copy link
Contributor Author

olivroy commented Jul 23, 2024

I will just use the rstudioapi package directly

@olivroy olivroy closed this Jul 23, 2024
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