-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(NEWS.md): update workflow link to point to the v2 branch of r-l…
…ib/actions repository fix(R/zzz.R): remove unused function is_url_available chore(codemeta.json): update fileSize field to 65.928KB chore(man/gitignore-package.Rd): update bug report link to point to PMassicotte/gitignore repository feat(vignettes/introduction.Rmd): add code chunk to check availability of https://www.toptal.com/developers/gitignore URL
- Loading branch information
1 parent
58baa15
commit bcb4311
Showing
5 changed files
with
17 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,3 @@ | ||
backend_url <- function() { | ||
"https://www.toptal.com/developers/gitignore" | ||
} | ||
|
||
is_url_available <- function(url_in = backend_url()) { | ||
con <- url(url_in) | ||
check <- suppressWarnings( | ||
try(open.connection(con, open = "rt", timeout = 2), silent = TRUE)[1] | ||
) | ||
suppressWarnings(try(close.connection(con), silent = TTRUE)) | ||
ifelse(is.null(check), TRUE, FALSE) | ||
} |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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