Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed May 18, 2024
1 parent e331db4 commit a9d353f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion R/stores.R
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,9 @@ HttpStore <- R6::R6Class("HttpStore",
segments <- stringr::str_split(private$url, "/")[[1]]
private$domain <- paste(segments[1:3], collapse="/")
private$base_path <- paste(segments[4:length(segments)], collapse="/")


if(!requireNamespace("crul", quietly = TRUE)) stop("HttpStore requires the crul package")

private$client <- crul::HttpClient$new(
url = private$domain,
opts = private$options,
Expand Down

0 comments on commit a9d353f

Please sign in to comment.