Using a dataframe with question ids from SO:
df <- data.frame (qid = c(71663375, 71674701, 71724524))
Using the folliwng code it is possible to make 3 api calls to receive info for every question.
However SO app provides the chance to run into 1 call 100 ids. How is it possible to make it?
library(stackr)
for (j in 1:nrow(df)) {
questions <- stack_questions(df$qid[j])
}
If the
appcan handles 100 at a time,splittheqidintolistof vectors with eachlistelement holding 100 at a time,and then use
lapplyor
forloop to loop over thelist-output
data