使用R获取高度指定数据
为什么以下代码反复给我一个错误?
library(rcrossref)
library(rAltmetric)
alt <- altmetrics(doi = '10.1111/j.1475-2743.2006.00029.x')
Error: lexical error: invalid char in json text.
The API key you supplied was no
(right here) ------^
In addition: Warning message:
In altmetrics(doi = "10.1111/j.1475-2743.2006.00029.x") :
Unauthorized (HTTP 401).
任何帮助都非常感谢!
Why the following code repeatedly gives me an error?
library(rcrossref)
library(rAltmetric)
alt <- altmetrics(doi = '10.1111/j.1475-2743.2006.00029.x')
Error: lexical error: invalid char in json text.
The API key you supplied was no
(right here) ------^
In addition: Warning message:
In altmetrics(doi = "10.1111/j.1475-2743.2006.00029.x") :
Unauthorized (HTTP 401).
Any help is highly appreciated!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Raltmetric软件包似乎不再支持,并且软件包中的API已过期。您将必须直接申请自己的API。
从GitHub安装Raltmetric后,我会向您获取相同的错误消息(R版本4.2.2)。该包装于2022年6月从Cran撤回,这表明目前尚未维护。请参阅 cran
信息链接指出以下内容:
“从cran存储库中删除了“'raltmetric'软件包”。
可以从档案中获取以前可用的版本。
应维护者的要求在2022-06-02存档。”
The rAltmetric package no longer appears to be supported and the API in the package has expired. You will have to apply directly to Altmetric for your own API.
I obtain the identical error message to you (R version 4.2.2) after installing rAltmetric from GitHub. The package was withdrawn from CRAN in June 2022 which suggests it is not currently maintained. See CRAN information for details
The information on CRAN from the above link states the following:
"Package ‘rAltmetric’ was removed from the CRAN repository.
Formerly available versions can be obtained from the archive.
Archived on 2022-06-02 at the request of the maintainer."