Skip to content

Commit

Permalink
Fix bug reported by @EFreiberger that can add data to a data frame
Browse files Browse the repository at this point in the history
  • Loading branch information
adamhsparks committed Jan 17, 2019
1 parent 73d4e46 commit 5dcf944
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R/get_GSOD.R
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,10 @@ get_GSOD <- function(years,
}

GSOD_XY <- apply_process_gz(file_list, isd_history)

# remove any leftover files from download to prevent poluting a new run
file.remove(list.files(tempdir(), pattern = ".gz$", full.names = TRUE))

return(GSOD_XY)
}

0 comments on commit 5dcf944

Please sign in to comment.