我的终端无法运行我的 Rscript。继续获取““>quote”的输出

发布于 2025-01-15 10:19:06 字数 293 浏览 4 评论 0原文

我正在尝试从终端运行 Rscript 以检查我是否为课程正确编写了代码。每当我使用以下命令运行我的 Rscript` 时:

Rscript --vanilla -e ‘source(“file.R”)’ -e ‘print()’

我得到的输出只是

quote> 

我检查了我的代码和文件,我至少应该得到一些东西。当我在 RStudio 中运行时,我的代码会生成一些内容。 你知道我能做什么来解决这个问题吗?或者对我做错了什么有任何建议吗?

I am trying to run an Rscript from my terminal to check that I made my code properly for class. Whenever I run myRscript` using the command :

Rscript --vanilla -e ‘source(“file.R”)’ -e ‘print()’

I get the output of just

quote> 

I checked my code and my file and I should at least get something. When I run in RStudio my code produces something.
Do you know what I can do to fix this? or any can suggestions on what I am doing wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文