Skip to content

Commit

Permalink
use tempfile()
Browse files Browse the repository at this point in the history
  • Loading branch information
hansvancalster committed Aug 29, 2023
1 parent ee68b27 commit 82c0e44
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/get_feature_wfs.R
Original file line number Diff line number Diff line change
Expand Up @@ -188,12 +188,12 @@ store_as_gml <- function(content, ...) {
}

store_as_gml.raw <- function(
content, destfile = paste0(tempfile(), ".gml"), ...) {
content, destfile = tempfile(fileext = "gml"), ...) {
writeBin(content, destfile, useBytes = TRUE)
}

#' @importFrom xml2 write_xml
store_as_gml.xml_document <- function(
content, destfile = paste0(tempfile(), ".gml"), ...) {
content, destfile = tempfile(fileext = "gml"), ...) {
write_xml(content, destfile)
}

0 comments on commit 82c0e44

Please sign in to comment.