Skip to content

Commit

Permalink
lint new helper function
Browse files Browse the repository at this point in the history
  • Loading branch information
LuiseQuoss committed Jul 10, 2024
1 parent e22fe5c commit 8fd1050
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions R/ebv_utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -901,7 +901,7 @@ ebv_i_char_variable <- function(string_vector, max_char, reverse=FALSE){
#' @noRd
ebv_i_check_url <- function(url){
con <- url(url)
check <- suppressWarnings(try(open.connection(con,open="rt",timeout=t),silent=T)[1])
suppressWarnings(try(close.connection(con),silent=T))
ifelse(is.null(check),FALSE,TRUE)
check <- suppressWarnings(try(open.connection(con, open="rt", timeout=t), silent=TRUE)[1])
suppressWarnings(try(close.connection(con), silent=TRUE))
ifelse(is.null(check), FALSE, TRUE)
}

0 comments on commit 8fd1050

Please sign in to comment.