Skip to content

Instantly share code, notes, and snippets.

@russHyde
Created July 30, 2024 08:09
Show Gist options
  • Save russHyde/db19fb965c467d06ed65a2c00414e329 to your computer and use it in GitHub Desktop.
Save russHyde/db19fb965c467d06ed65a2c00414e329 to your computer and use it in GitHub Desktop.
FIx advanced-shiny Rproj file paths
for (i in 1:5) {
chapter <- paste0("chapter-", i)
path <- file.path("~", "advanced-concepts-in-shiny", "exercises", chapter, "question")
usethis::create_project(path = path, rstudio = TRUE, open = FALSE)
file.rename(
from = file.path(path, "question.Rproj"),
to = file.path(path, paste0("ch", i, "-question.Rproj"))
)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment