如何配置statet代码片段?

问题描述 投票:0回答:1

我想将我的工作目录设置为我正在工作的文件的位置。

在日食中

Windows>首选项> Statet> Run / Debug> R Code Snippets

打开对话框以运行代码段。

enter image description here执行以下操作允许我使用项目资源管理器中选择的资源的路径运行setwd()命令。我需要用什么命令指向我目前正在使用的窗口/ Rfile? (当前在Windows中活动的那个)

r eclipse code-snippets statet
1个回答
0
投票

选择变量$container_loc$可以解决问题,但前提是包含当前脚本的窗口具有焦点。

enter image description here

© www.soinside.com 2019 - 2024. All rights reserved.