问题
I try to execute the following command to receive information:
library(stackr)
stack_users(1144035, "reputation-history", site = "stackoverflow", num_pages=1000000, pagesize=100, encoding = "UTF-8")
However I receive following error and the code stops.
No encoding supplied: defaulting to UTF-8. [1] "Error: Error: lexical error: invalid char in json text.\n Too\n (right here) ------^\n\n"
How can I fix it? I added the enconding in the command but again the error is the same.
来源:https://stackoverflow.com/questions/58936751/encoding-calling-api-format