Rstudio 的控制台在交互模式测试时卡住
我尝试在 Rstudio 中测试交互模式:
ans <- readLines("stdin", n = 1)
print(ans)
但是控制台卡住并且不接受任何命令。之后我什至无法退出此模式,并且必须重新启动整个 Rstudio。 我做错了什么?
I try to test an interactive mode in Rstudio:
ans <- readLines("stdin", n = 1)
print(ans)
However the console gets stuck and not accepting any commands. I cannot even quit this mode after that and have to reboot the entire Rstudio.
What I do wrong?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从
stdin()
读取,而不是file("stdin")
:从
?stdin
读取:Read from
stdin()
, notfile("stdin")
:From
?stdin
: