RedditExtractor icon indicating copy to clipboard operation
RedditExtractor copied to clipboard

Error when calling get_user_content

Open hiralalkamil opened this issue 2 years ago • 1 comments

When I call the get_user_content function, I get the following warning message:

test <- get_user_content(c("memes", "nationalgeographic"))

parsing user memes... parsing URLs on page 1... parsing user nationalgeographic... parsing URLs on page 1...

Warning messages: 1: In file(con, "r") : invalid 'description' argument 2: In file(con, "r") : invalid 'description' argument

The test list results in three NA values: for about, comment ant threads.

I'm running R version 4.1.1 and RedditExtractoR 3.0.9

Do you have any idea where this error stems from?

hiralalkamil avatar Jun 06 '23 09:06 hiralalkamil

Same issue:

R version 4.2.3 RedditExtractoR 3.0.9

test <- get_user_content(c("memes", "nationalgeographic")) parsing user memes... parsing URLs on page 1... parsing user nationalgeographic... parsing URLs on page 1... Warning messages: 1: In !file.exists(content) && length(grep("^[[:space:]][[{]", content)) : 'length(x) = 621 > 1' in coercion to 'logical(1)' 2: In file(con, "r") : invalid 'description' argument 3: In !file.exists(content) && length(grep("^[[:space:]][[{]", content)) : 'length(x) = 621 > 1' in coercion to 'logical(1)' 4: In file(con, "r") : invalid 'description' argument

bmb179 avatar Aug 16 '23 01:08 bmb179