r - 如何让 R 在 MacOS 上说出/说出当前时间?
问题描述
我可以让 R 使用system
命令说/说短语。
例如:
system("say What time is it?")
我怎么得到它,所以说当前时间?
有人会认为是这样的:
system("say the current time is Sys.time()")
会工作,但它不会。
解决方案
推荐阅读
- postgresql - 如何将查询加载到复合类型数组中?
- python - pandas DataFrame 中的新列,用于计算以下所有值的列值的出现次数
- java - AnyLogic:在机架系统中存储不同的代理
- javascript - 我无法在 Javascript 中使用匹配媒体更改变量的值
- javascript - 在逗号分隔的字符串中如何过滤数组对象的唯一值
- javascript - WebUSB navigator.usb 不能用于查看浏览器是否得到支持
- python - Django 外键计数
- git - Git - 我的分支没有使用最新的 master 更新
- javascript - 如何在 Handlebars 中创建一个具有多个逻辑运算符 OR 的助手
- powershell - Powershell 获取输出,向其中添加内容,然后输出到文件