我一直在尝试使用IMFData包但我仍然遇到同样的问题。到目前为止我唯一写的是:
library(IMFData)
FMI <- DataflowMethod()
但我一直收到这个错误:
Error: lexical error: invalid char in json text.
<?xml version="1.0" encoding="u
(right here) ------^
5.parse_string(txt, bigint_as_char)
4.parseJSON(txt, bigint_as_char)
3.fromJSON_string(txt = txt, simplifyVector = simplifyVector,simplifyDataFrame = simplifyDataFrame, simplifyMatrix = simplifyMatrix, flatten = flatten, ...)
2.jsonlite::fromJSON(httr::content(r, "text")) at IMFData.R#28
1.DataflowMethod()
我明白我的问题是json和我见过很多其他人有类似的错误,但我没有找到解决方案。有人可以帮助我吗?