如何在Windows 10上运行Rmarkdown zsh块?

如何在Windows 10上运行Rmarkdown zsh块?,r,rstudio,r-markdown,zsh,R,Rstudio,R Markdown,Zsh,在macOS Catalina上,默认shell是zsh,因此我决定在mac上进行转换,这样就可以毫无问题地运行代码块: ls 但是,在Windows 10上运行时。我得到以下错误: zsh is not recognized as an internal or external command, operable program or batch file. 我按照这些步骤成功地在Windows10上安装了zsh 这是可能的,还是我应该坚持使用bash代码块,使我的代码在Windows上也

在macOS Catalina上,默认shell是zsh,因此我决定在mac上进行转换,这样就可以毫无问题地运行代码块:

ls
但是,在Windows 10上运行时。我得到以下错误:

zsh is not recognized as an internal or external command, operable program or batch file.
我按照这些步骤成功地在Windows10上安装了zsh

这是可能的,还是我应该坚持使用bash代码块,使我的代码在Windows上也可以复制?

  • 我从以下教程开始在Windows上安装bash和zsh:

  • 然后我下载并安装了RStudio预览版: (使用1.3.926版进行测试)

  • 打开RStudio并导航至
    Tools->Global Options->Terminal->New Terminals Open with Custom

      • 我从以下教程开始在Windows上安装bash和zsh:

      • 然后我下载并安装了RStudio预览版: (使用1.3.926版进行测试)

      • 打开RStudio并导航至
        Tools->Global Options->Terminal->New Terminals Open with Custom