1

我已经设置了 gmailR 以通过电子邮件共享数据帧。我得到以下错误。请帮忙

email <- send_message(mime(from="xxxx@yyyy.com", to="xxxx@yyyy.com",
                          subject="Text Email Testing", body = pander_return(pander(head(iris, 3)))))

Auto-refreshing stale OAuth token.
Warning message:
In charToRaw(x) : argument should be a character vector of length 1
all but the first element will be ignored
4

1 回答 1

2

尝试

paste(pander_return(pander(head(iris, 3))), collapse="\n")

length(pander_return(pander(head(iris, 3))))24,但该函数似乎需要一个长度为的字符向量1paste连接它,使用换行符\n作为分隔符。

于 2016-03-08T15:06:42.190 回答