Skip to content

Commit

Permalink
Tweak vignette output
Browse files Browse the repository at this point in the history
  • Loading branch information
jeroen committed Nov 8, 2018
1 parent ce4748f commit 56e02c1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion R/onattach.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
tryCatch({
key <- find_ssh_key("github.com")
if(length(key)){
packageStartupMessage(sprintf("SSH keyfile: %s", key))
packageStartupMessage(sprintf("SSH key: %s", key))
} else {
packageStartupMessage("No key found. Use ssh_keygen() to generate one!")
}
Expand Down
8 changes: 4 additions & 4 deletions vignettes/intro.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ library <- function(package){
}
# If no credential helper has been set, use the 'cache' helper
tryCatch({
invisible(tryCatch({
credentials::credential_helper_get()
}, error = function(...){
credentials::credential_helper_set('cache', global = TRUE)
})
}))
# If no key exists, generate one
tryCatch(credentials::my_ssh_key(), error = function(e){
invisible(tryCatch(credentials::my_ssh_key(), error = function(e){
ssh_keygen()
})
}))
```


Expand Down

0 comments on commit 56e02c1

Please sign in to comment.