r - taskscheduleR:找不到函数“as”
问题描述
我正在尝试使用 RStudio 中的 taskscheduleR 插件每周运行脚本。我每次都变成同样的错误:找不到函数“as”。
Quitting from lines 25-83 (association_analysis.Rmd)
Fehler in as(dataToTrans, "transactions") :
konnte Funktion "as" nicht finden
Ruft auf: render ... handle -> withCallingHandlers -> withVisible -> eval -> eval
R脚本的一部分,错误抛出的地方:
library('arules')
#create transactions
transactions <- as(dataToTrans, "transactions")
inspect(head(transactions))
当我在 RStudio 中运行脚本时,它可以完美运行,但不能使用 taskscheduleR。知道我怎样才能让它工作吗?
解决方案
尝试添加
library(methods)
到.Rmd,因为as
是这个包中的一个函数。
推荐阅读
- javascript - 如何将事件侦听器添加到由 javascript 对象模型生成的 HTML
- opengl - 离屏渲染和 alpha 与背景颜色缓冲区的混合
- javascript - 调用调度后组件不更新
- c++ - 可写的邮编范围是不可能的?
- django - Django forms.ValidationError 未显示在模板中并且提交不起作用
- c# - 允许为 Datagridview C# 输入负整数值
- php - 如何在php中比较mysql查询中的时间?
- android - 原始错误:未知错误:无法发现打开的页面
- javascript - 为什么 Date.now() 在 node.js 中返回错误的值
- javascript - 每次点击列表项时,在事件源 URL 中发送参数