-
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.
Merge pull request #109 from inbo/0.3.4
0.3.4
- Loading branch information
Showing
14 changed files
with
132 additions
and
125 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
Type: Package | ||
Package: checklist | ||
Title: A Thorough and Strict Set of Checks for R Packages and Source Code | ||
Version: 0.3.3 | ||
Version: 0.3.4 | ||
Authors@R: c( | ||
person("Thierry", "Onkelinx", , "[email protected]", role = c("aut", "cre"), | ||
comment = c(ORCID = "0000-0001-8804-4216", affiliation = "Research Institute for Nature and Forest (INBO)")), | ||
|
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
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 |
---|---|---|
|
@@ -258,25 +258,18 @@ preferred_protocol <- function() { | |
config <- read_yaml(config_file) | ||
} | ||
if ( | ||
!has_name(config, "git") || !has_name(config$git, "protocol") || | ||
!has_name(config$git, "organisation") | ||
!has_name(config, "git") || !has_name(config$git, "protocol") | ||
) { | ||
org <- organisation$new() | ||
sprintf( | ||
"What is your default GitHub organisation. Leave empty for `%s`.", | ||
org$get_github | ||
) |> | ||
readline() -> config[["git"]][["organisation"]] | ||
if (config[["git"]][["organisation"]] == "") { | ||
config[["git"]][["organisation"]] <- org$get_github | ||
} | ||
c("https (easy)", "ssh (more secure)") |> | ||
menu_first(title = "Which protocol do you prefer?") -> protocol | ||
config[["git"]][["protocol"]] <- c("https", "ssh")[protocol] | ||
dirname(config_file) |> | ||
dir_create() | ||
write_yaml(x = config, file = config_file, fileEncoding = "UTF-8") | ||
} | ||
org <- organisation$new() | ||
sprintf("Which GitHub organisation. Leave empty for `%s`.", org$get_github) |> | ||
readline() -> config[["git"]][["organisation"]] | ||
ifelse( | ||
config$git$protocol == "https", "https://github.com/%s/%%s.git", | ||
"[email protected]:%s/%%s.git" | ||
|
Oops, something went wrong.