RStudio v1.4 正式发布,看看有哪些新特性

RStudio v1.4 正式发布

RStudio 团队昨天正式发布了新的版本 v1.4。

本次更新引入了非常多新的特性:

  • 可视化 Markdown 编辑器支持。A visual markdown editor[1] that provides improved productivity for composing longer-form articles and analyses with R Markdown.
  • 新的 Python 支持能力。New Python capabilities[2], including display of Python objects in the Environment pane, viewing of Python data frames, and tools for configuring Python versions and conda/virtual environments.
  • 多编辑窗口。The ability to add source columns[3] to the IDE workspace for side-by-side text editing.
  • 命令面板。A new command palette[4] (accessible via Ctrl+Shift+P) that provides easy keyboard access to all RStudio commands, add-ins, and options.
  • 彩虹括号。Support for rainbow parentheses[5] in the source editor (enabled via Options -> Code -> Display).
  • 支持文献引入插入。New citation support[6] that allows you to include document citations from your document bibliography, personal or group libraries, and several other sources.
  • 集成了一系列新的RStudio Server Pro特性。Integration with a host of new RStudio Server Pro features[7] including project sharing when using Launcher, Microsoft Visual Studio Code support (currently in beta), SAML authentication, and local launcher load-balancing.

下面具体看看这些新的特性,我只介绍重点,详情大家可以仔细阅读发布博客:https://blog.rstudio.com/2021/01/19/announcing-rstudio-1-4/

可视化 Markdown 编辑器支持

编辑 RMarkdown/Markdown 时,点击编辑窗口右上角类似 A 的按钮即可进入可视化模式,下面是一个示例,我们可以在这种可视化窗口下进行文字和代码编辑。推荐阅读全面的文档:https://rstudio.github.io/visual-markdown-editing/#/

img

新的 Python 支持

从 Tools -> Global optional 进入配置窗口,最下方可以看见 Python 栏,在这里我们可以选择使用的 Python 解释器。

The Python preferences pane.

按下选择按钮后,RStudio 会自动检索系统上所有的 Python 解释器路径。

The list of Python interpreters available on the system.

RStudio 妥妥的最强 Python IDE 之一

命令面板

这个绝了!像 VSCode 和其他一些流行编辑器一大特性就是支持命令面板,现在 RStudio 也上了。

快捷键:Ctrl + Shift + P (Cmd + Shift + P on macOS)

Screenshot of the RStudio IDE with the Command Palette open

彩虹括号?

写 R 的时候代码一旦复杂,括号就多了,这个新的特性可以帮助我们的眼睛更好地识别匹配项。

img

不过在新的版本中,这个功能默认是关闭的,打开方式如下:

image-20210120150701712

引用支持

可视化 Markdown 编辑模式下现在可以直接通过 RStudio 插入各种文献引用了,这势必让 RStudio 成为科学研究报告利器。

image-20210120150959063

img

更多查看 https://blog.rstudio.com/2020/11/09/rstudio-1-4-preview-citations/

最后,下载地址:https://rstudio.com/products/rstudio/download/

参考资料

[1]

visual markdown editor: https://blog.rstudio.com/2020/09/30/rstudio-v1-4-preview-visual-markdown-editing/

[2]

Python capabilities: https://blog.rstudio.com/2020/10/07/rstudio-v1-4-preview-python-support/

[3]

source columns: https://blog.rstudio.com/2020/10/21/rstudio-1-4-preview-multiple-source-columns/

[4]

command palette: https://blog.rstudio.com/2020/10/14/rstudio-v1-4-preview-command-palette/

[5]

rainbow parentheses: https://blog.rstudio.com/2020/11/04/rstudio-1-4-preview-rainbow-parentheses/

[6]

citation support: https://blog.rstudio.com/2020/11/09/rstudio-1-4-preview-citations/

[7]

a host of new RStudio Server Pro features: https://blog.rstudio.com/2020/11/16/rstudio-1-4-preview-server-pro/

本站文章资源均来源自网络,除非特别声明,否则均不代表站方观点,并仅供查阅,不作为任何参考依据!
如有侵权请及时跟我们联系,本站将及时删除!
如遇版权问题,请查看 本站版权声明
THE END
分享
二维码
海报
RStudio v1.4 正式发布,看看有哪些新特性
下面具体看看这些新的特性,我只介绍重点,详情大家可以仔细阅读发布博客:https://blog.rstudio.com/2021/01/19/announcin...
<<上一篇
下一篇>>