Skip to content

Commit

Permalink
correcting issue with stream folder
Browse files Browse the repository at this point in the history
  • Loading branch information
Kwazao committed Mar 24, 2020
1 parent f9cada8 commit f015d4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/stream.R
Original file line number Diff line number Diff line change
Expand Up @@ -526,7 +526,7 @@ stream_tweets2 <- function(..., dir = NULL, append = FALSE) {
pat <- paste0(file_name, "\\-[[:digit:]]{1,}\\.json$")
jsons <- list.files(dir, pattern = pat, full.names = TRUE)
file_name <- paste0(dir, ".json")
unlink(dir, recursive = TRUE)
#unlink(dir, recursive = TRUE)
if (!parse) {
return(invisible())
}
Expand Down

1 comment on commit f015d4b

@Kwazao
Copy link
Owner Author

@Kwazao Kwazao commented on f015d4b Mar 25, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That line was responsible for the deletion of directory and files inside after end of the stream.
ig : ropensci-archive#294

Please sign in to comment.