RStudio控制台在运行脚本后停止返回控制台

ippsafx7  于 2023-05-04  发布在  其他
关注(0)|答案(1)|浏览(213)

我的问题与帖子(R studio will occasionally stop returning to the console until I restart the program?)中的问题类似。但这并没有回答我的问题。
以下是我的RStudio控制台中的情况:

> require(igraph)
Loading required package: igraph
> V(T)
Vertex sequence:
[1] 1 2 3 4
> debugSource('C:/current/CSC791/Week 9/P5/P5_kbansal.r')
Browse[1]> n
Browse[2]> c
Error: (list) object cannot be coerced to type 'logical'
> V(T)
>

所以,即使'〉'光标已经到达(在类似的帖子中回答),我仍然无法看到变量(e。g. V(T))。
注意:这与脚本成功或错误无关。因为我面对的是同样的情况,即使运行R脚本也没有任何错误。

hmae6n7t

hmae6n7t1#

也许可以尝试使用sink()将输出返回到控制台。

相关问题