r - 在 RStudio 中编织 GA 数据:相同(body,FALSE)中的错误:找不到对象“redirect.uri”
问题描述
我正在使用该rga
软件包来跟踪我的 Google Analytics(分析)数据。
当我在 R 中创建脚本时,我成功地从 GA 检索数据:
library(rga)
library(curl)
rga.open(instance="ga")
x <- ga$getProfiles()
id <- x[3,1] # here we select the ID of the webpage we are tracking
visits <- ga$getData(id,
start.date= as.Date("2016-01-01"),
end.date = "today",
metrics = "ga:visits, ga:pageviews, ga:organicSearches",
dimensions = "ga:date",
sort = "", filters = "", segment = "",
start = 1, max = 1000,
batch = TRUE)
但是,当我将此代码复制/粘贴到 RMarkdown 文件中的一个块中时,在将其转换为 HTML/PDF/Word 时出现此错误:
相同(正文,FALSE)中的错误:找不到对象'redirect.uri'调用:...-> request_build-> body_config-> 相同执行暂停
如何使用 R Markdown 创建关于我的 GA 数据的报告?我怎么解决这个问题
解决方案
推荐阅读
- javascript - div 通过父 div 透明到祖父 div 背景
- android - androidx中“设计”的依赖是什么?
- python - 如何让玩家/敌人在被击中时改变颜色?
- java - 如何在 Spring、JPA 和 PostgreSQL 中使用 DayOfWeek?
- eclipse - 打开源文件时,带有 CDT 的 Eclipse 4.11.0 使 java 崩溃
- javascript - JavaScript findIndex 不适用于第一个对象
- python - 语法错误:关键字不能是表达式 - 来自 blackjackcode
- reactjs - Highcharts X轴和y轴
- python - 如何使用这些数据制作直方图?
- go - 如何将时区信息添加到现有 time.Time