-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
local_create_package <- function(dir = fs::file_temp(), env = parent.frame()) { | ||
old_wd <- getwd() | ||
|
||
usethis::create_package(dir, open = FALSE) | ||
withr::defer(fs::dir_delete(dir), envir = env) | ||
|
||
setwd(dir) | ||
withr::defer(setwd(old_wd), envir = env) | ||
|
||
dir | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,14 @@ | ||
#' Set up codecov | ||
#' @param reposlug `[character(1)]` giving the `username/repo` URL slug of the project. | ||
#' @param reposlug `[character(1)]` | ||
#' giving the `username/repo` URL slug of the project. | ||
#' @family testing functions | ||
#' @export | ||
use_codecov2 <- function(reposlug) { | ||
usethis::use_coverage(type = "codecov") | ||
usethis::ui_todo( | ||
"Add the {usethis::ui_value('Repository Upload Token')} from codecov as a secret called {usethis::ui_value('CODECOV_TOKEN')} on GitHub." | ||
) | ||
usethis::ui_todo(c( | ||
"Add the {usethis::ui_value('Repository Upload Token')} from codecov ", | ||
"as a secret called {usethis::ui_value('CODECOV_TOKEN')} on GitHub." | ||
)) | ||
view_url("https://codecov.io/gh", reposlug, "settings") | ||
view_url("https://github.com", reposlug, "settings", "secrets") | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.