使用R获取高度指定数据

发布于 2025-02-13 15:39:33 字数 447 浏览 0 评论 0原文

为什么以下代码反复给我一个错误?

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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

风启觞 2025-02-20 15:39:34

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."

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文