Skip to content

Commit

Permalink
Add garbage collection
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksanderbl29 committed Nov 22, 2024
1 parent f9725a2 commit b8a49fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/get_map_data.R
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ get_map_data_nocache <- function(type, cache = FALSE, params = list()) {

# Clean up api response
rm(api_response)
# Garbagecollect
gc(verbose = FALSE)

resp_st <- sf::st_read(
temp_file,
Expand Down

0 comments on commit b8a49fb

Please sign in to comment.