使用Rstudio作为其他编程语言的IDE(Stata) [英] Using Rstudio as an IDE for other programming languages (Stata)

查看:973
本文介绍了使用Rstudio作为其他编程语言的IDE(Stata)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我喜欢Rstudio IDE和轻松点击git(hub)集成。

I love the Rstudio IDE and the easy point click git(hub) integration.

我可以将Rstudio用作其他编程语言的IDE吗?

Can I use Rstudio as an IDE for other programming languages?

特别是除了R / Rstudio之外,我还经常使用Stata。 Stata很棒,但编程环境(文件编辑器)落后了数年。根据本指南,可以将Stata设置为从其他文本运行编辑(Emacs等)。

In particular, besides R/Rstudio, I use Stata a lot. Stata is great, but the programing environment (do file editor) is years behind. According to this guide, Stata can be set up to run from other text editors (Emacs, etc).

我可以将其设置为从Rstudio运行吗?
Rstudio可以支持Stata语言的语法高亮显示吗?
如果是这样,我可以在Rstudio中添加一个快捷方式或命令来执行Stata代码块吗?

Could I set it up to run from Rstudio? Can Rstudio support syntax highlighting for Stata language? If so can I add a shortcut or command in Rstudio to execute Stata code chunks?

推荐答案

我建议查看Sublime Text(3,仍处于测试阶段,是推荐版本)。 Sublime(又名ST)拥有的工具和功能使其成为许多程序员非常受欢迎的选择。

I recommend looking at Sublime Text (3, which is still in beta, is the recommended version). Sublime (aka ST) has tools and features that have made it a very popular choice for many programmers.

要让Stata和ST一起玩,请采取以下额外步骤:

To get Stata and ST to play well together, take the following additional steps:


  1. 为您正在使用的操作系统安装打包控件

  2. 从包控件中,安装您选择的Stata包。我相信 StataEditor 是Windows的首选版本, StataEnhanced 。这些将为您提供语法高亮显示。

  3. 从您选择安装的任何软件包中,查看自述文件文件,看看如何使用ST的 cmd + b 键盘快捷方式将.do文件直接发送到Stata进行处理,而无需将应用程序从ST切换到Stata。

  1. Install package control for whatever operating system you're using.
  2. From within package control, install your Stata package of choice. I believe StataEditor is the preferred version for Windows and StataEnhanced for OS X. These will provide you with syntax highlighting.
  3. From within whatever package you choose to install, review the readme file to see how to use ST's cmd+b keyboard shortcut to send .do files directly to Stata for processing without having to switch applications out of ST and into Stata.

仅供参考,Stata语法高亮包是从旧的TextMate Stata包开发的。这意味着,如果您可以找到组件,任何可以接受TextMate包的现代文本编辑器都会为您提供语法高亮显示,并且至少比Stata编辑器更具视觉效果。

Just FYI, the Stata syntax highlighting packages were developed from the old TextMate Stata package. This means that, if you can find the components, any modern text editor which can accept TextMate packages will give you syntax highlighting and, at a minimum, a more visually pleasant coding environment than the Stata editor.

这篇关于使用Rstudio作为其他编程语言的IDE(Stata)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆