Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/EmptyTag/133.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
为什么这段代码显示dwapi::configure()?_R - Fatal编程技术网

为什么这段代码显示dwapi::configure()?

为什么这段代码显示dwapi::configure()?,r,R,我怎样才能使这个代码正确 library("data.world") file_df <- download_file_as_data_frame( "jonloyens/an-intro-to-dataworld-dataset", "fatal-police-shootings-data.csv") library(“data.world”) 文件_df为了说明我为什么写这篇评论: packageDescription('data.world') Package: data.

我怎样才能使这个代码正确

library("data.world")
file_df <- download_file_as_data_frame(
  "jonloyens/an-intro-to-dataworld-dataset",
  "fatal-police-shootings-data.csv")
library(“data.world”)

文件_df为了说明我为什么写这篇评论:

packageDescription('data.world')
Package: data.world
Title: Functions and Add-Ins for Working with 'data.world' Data Sets and Projects
Version: 1.2.2
Authors@R: c( person("Rafael", "Pereira", email = "rafael.pereira@data.world", role =
         c("aut", "cre")), person("Triet", "Le", email = "triet.le@data.world", role =
         c("aut")), person("Bryon", "Jacob", email = "bryon.jacob@data.world", role =
         c("aut")), person("Scott", "Came", email = "scott@cascadia-analytics.com",
         role = c("aut")))
Description: High-level tools for working with 'data.world' data sets. 'data.world' is
         a platform where you can find interesting data, store and showcase your own
         data and data projects, and find and collaborate with other members. In
         addition to exploring, querying and charting data on the data.world site, you
         can access data via 'API' endpoints and integrations. Use this package to
         access, query and explore data sets, and to publish your insights. Visit
         <https://data.world>, for additional information.
Depends: R (>= 3.3.0), dwapi (>= 0.1.3)
Imports: httr, ini, miniUI, shiny, stringi
Suggests: covr, knitr, lintr, readr, rmarkdown, testthat (>= 2.0.0)
License: Apache License 2.0
Encoding: UTF-8
LazyData: true
URL: https://github.com/datadotworld/data.world-r
BugReports: https://github.com/datadotworld/data.world-r/issues
RoxygenNote: 6.0.1
VignetteBuilder: knitr
NeedsCompilation: no
Packaged: 2018-04-04 20:36:39 UTC; root
Author: Rafael Pereira [aut, cre], Triet Le [aut], Bryon Jacob [aut], Scott Came [aut]
Maintainer: Rafael Pereira <rafael.pereira@data.world>
Repository: CRAN
Date/Publication: 2018-04-04 22:29:14 UTC
Built: R 3.6.1; ; 2019-09-16 05:09:34 UTC; unix
packageDescription('data.world'))
软件包:data.world
标题:用于处理“data.world”数据集和项目的函数和加载项
版本:1.2.2
Authors@R:c(个人(“拉斐尔”、“佩雷拉”),email=“拉斐尔。pereira@data.world“,角色=
c(“aut”、“cre”)、人员(“Triet”、“Le”、email=“Triet。le@data.world“,角色=
c(“aut”)),个人(“Bryon”,“Jacob”,email=“Bryon。jacob@data.world“,角色=
c(“aut”)、个人(“斯科特”、“来了”、电子邮件=”scott@cascadia-分析网站“,
角色=c(“aut”))
描述:用于处理“data.world”数据集的高级工具“数据世界”是
在这个平台上,您可以找到有趣的数据,存储和展示自己的数据
数据和数据项目,以及查找和与其他成员协作。在里面
除了在data.world网站上探索、查询和绘制数据图表外,您还可以
可以通过“API”端点和集成访问数据。使用此软件包
访问、查询和浏览数据集,并发布您的见解。参观
,以获取更多信息。
取决于:R(>=3.3.0),dwapi(>=0.1.3)
导入:httr、ini、minui、shinny、stringi
建议:covr、knitr、lintr、readr、rmarkdown、testthat(>=2.0.0)
许可证:Apache许可证2.0
编码:UTF-8
懒散的数据:真的
网址:https://github.com/datadotworld/data.world-r
错误报告:https://github.com/datadotworld/data.world-r/issues
罗克西根石:6.0.1
VignetteBuilder:knitr
需求编译:没有
打包:2018-04-04 20:36:39 UTC;根
作者:拉斐尔·佩雷拉[aut,cre],特里特·勒[aut],布莱恩·雅各布[aut],斯科特·凯姆[aut]
维修人员:拉斐尔·佩雷拉
储存库:CRAN
日期/发布日期:2018-04-04 22:29:14 UTC
建造:R3.6.1;2019-09-16 05:09:34 UTC;unix

CRAN接受的每个包都需要一个描述文件,该文件显示如何从控制台访问。这是一个有特定要求的文本文件。其中一个功能是指向成功运行所需的其他包以及代码或数据的外部源。因此,您应该查看“URL:”行的值,即,并自学。其他时候,您可能需要安装系统软件包,但此特定软件包没有列出任何。

有关
dwapi::configure()
的文档可以在Github上的自述部分找到


简而言之,对data.world API的请求需要一个用户令牌(甚至是免费的用户令牌),错误表明令牌没有正确发送。

当然,您需要调查正在访问的数据资源。我只能想象,在包的帮助页面和作为包一部分的描述文件中描述了这一点。。