Skip to content

Commit

Permalink
These run afoul of the .run rules, so why bother
Browse files Browse the repository at this point in the history
  • Loading branch information
jennybc committed Mar 1, 2024
1 parent 210905f commit 56c130c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions R/sitrep.R
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ print.sitrep <- function(x, ...) {
ui_bullets(c(
"i" = "Your working directory is not the same as the active usethis project.",
"_" = "Set working directory to the project: {.code setwd(proj_get())}.",
"_" = "Set project to working directory: {.run usethis::proj_set(getwd())}."
"_" = "Set project to working directory: {.code usethis::proj_set(getwd())}."
))
}

Expand All @@ -89,11 +89,11 @@ print.sitrep <- function(x, ...) {
"i" = "Your active RStudio Project is not the same as the active
{.pkg usethis} project.",
"_" = "Set active {.pkg usethis} project to RStudio Project:
{.run usethis::proj_set(rstudioapi::getActiveProject())}.",
{.code usethis::proj_set(rstudioapi::getActiveProject())}.",
"_" = "Restart RStudio in the active {.pkg usethis} project:
{.run rstudioapi::openProject(usethis::proj_get())}.",
{.code rstudioapi::openProject(usethis::proj_get())}.",
"_" = "Open the active {.pkg usethis} project in a new instance of RStudio:
{.run usethis::proj_activate(usethis::proj_get())}."
{.code usethis::proj_activate(usethis::proj_get())}."
))
}

Expand Down

0 comments on commit 56c130c

Please sign in to comment.