r - 在 R 的 GoogleWay 库中使用 Places API 时出现 next_page_token 错误
问题描述
我在 R 中使用带有 Googleway 包的 Places API 来提取 near_places。
最初,在提供密钥后,我输入查询并获取值。
have_places <- google_places(location = c(1.4434068, 103.7769701),
radius = 500,
simplify = FALSE,
key = key)
之后,当我设置令牌时,出现以下错误。
> token <- have_places$next_page_token
Error in have_places$next_page_token :
$ operator is invalid for atomic vectors
关于出了什么问题的任何建议?
我确实搜索了互联网,当我输入以下命令时;
令牌 <- have_places[3]
我可以获得 next_page_token,但是带有一些垃圾值。
解决方案
推荐阅读
- twig - 如何检查 li 是否有 class Active?
- python-3.x - 来自 python:3.x-alpine3.x 的 Alpine Docker 映像使用的 Python 包版本与所述不同
- javascript - 使用 findOne() 后如何从 mongoose/mongodb 文档中获取值
- cassandra - 在微秒内插入值时遇到问题
- callback - 从外部插件回调后离子内容不更新
- angular - 是否可以从 cellEditorParams 中检索值来为 ag-grid 中的列单元格着色?
- go - 如何使用 go 程序更新 Rancher 容器的镜像
- oracle - PLSQL 触发器引发应用程序错误不起作用
- php - 在codeigniter中上传压缩图像大小
- database - 将数据从 VBA 中的 SQL 加载到组合框